diff options
author | jsing <> | 2022-10-17 18:26:41 +0000 |
---|---|---|
committer | jsing <> | 2022-10-17 18:26:41 +0000 |
commit | 16d28f35982285c3fa25fa684eeccb156a626557 (patch) | |
tree | 260c1f65cd3e34bd39f0477a5d06036c3d4e2b78 /src/lib/libssl/tls13_lib.c | |
parent | eb4f355a86ee7fc6d40003fe9f76b9a9a938b061 (diff) | |
download | openbsd-16d28f35982285c3fa25fa684eeccb156a626557.tar.gz openbsd-16d28f35982285c3fa25fa684eeccb156a626557.tar.bz2 openbsd-16d28f35982285c3fa25fa684eeccb156a626557.zip |
Avoid potential divide by zero in BIO_dump_indent_cb()
Passing an indent value of 67 results in DUMP_WIDTH_LESS_IDENT returning a
value of zero, which is promptly used for division. Likewise, passing a
value larger than 67 results in a negative value being returned.
Prevent this by limiting indent to 64 (which matches OpenSSL's current
behaviour), as well as ensuring that dump_width is > 0.
Should fix oss-fuzz #52464 and #52467.
ok miod@ tb@
Diffstat (limited to 'src/lib/libssl/tls13_lib.c')
0 files changed, 0 insertions, 0 deletions