summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2023-01-13 14:46:08 +0000
committertb <>2023-01-13 14:46:08 +0000
commitf80a4029bb2f43fe5f0270857d48bc9d41d3ea4e (patch)
tree7e39f565ad41530ea5ed02d36032be18c204e2de /src/lib/libc
parent8fd11b09ad30a3305ae1c73fe6455f609f882196 (diff)
downloadopenbsd-f80a4029bb2f43fe5f0270857d48bc9d41d3ea4e.tar.gz
openbsd-f80a4029bb2f43fe5f0270857d48bc9d41d3ea4e.tar.bz2
openbsd-f80a4029bb2f43fe5f0270857d48bc9d41d3ea4e.zip
Prevent 1-byte out-of-bounds read in i2c_ASN1_BIT_STRING
If an ASN.1 BIT STRING a of length > 0 contains only zero bytes in a->data, this old code would end up reading from a->data[-1]. This may or may not crash. Luckily, anton observed two openssl-ruby regress test failures in the last few days, which could eventually be traced back to this (after a lot of painful digging due to coredumps not working properly). ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions