summaryrefslogtreecommitdiff
path: root/src/usr.sbin
diff options
context:
space:
mode:
authortb <>2023-11-21 16:31:31 +0000
committertb <>2023-11-21 16:31:31 +0000
commit7c178f9af5dd84d292b8bda62f75d0c3ff7d5206 (patch)
treefe50c364dd33abd3e06e86ffb4e947a22fcc8fe0 /src/usr.sbin
parent3c386b86733a195034fd6941e0f073fbe4da9a72 (diff)
downloadopenbsd-7c178f9af5dd84d292b8bda62f75d0c3ff7d5206.tar.gz
openbsd-7c178f9af5dd84d292b8bda62f75d0c3ff7d5206.tar.bz2
openbsd-7c178f9af5dd84d292b8bda62f75d0c3ff7d5206.zip
Fix a <= 5-byte buffer overwrite in print_bin()
If the offset is > 124, this function would overwrite between 1 and 5 bytes of stack space after str[128]. So for a quick fix extend the buffer by 5 bytes. Obviously this is the permanent fix chosen elswehere. The proper fix will be to rewrite this function from scratch. Reported in detail by Masaru Masuda, many thanks! Fixes https://github.com/libressl/openbsd/issues/145 begrudging ok from beck
Diffstat (limited to 'src/usr.sbin')
0 files changed, 0 insertions, 0 deletions