summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_lib.c
diff options
context:
space:
mode:
authorjsing <>2022-10-17 18:26:41 +0000
committerjsing <>2022-10-17 18:26:41 +0000
commit16d28f35982285c3fa25fa684eeccb156a626557 (patch)
tree260c1f65cd3e34bd39f0477a5d06036c3d4e2b78 /src/lib/libssl/tls13_lib.c
parenteb4f355a86ee7fc6d40003fe9f76b9a9a938b061 (diff)
downloadopenbsd-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