diff options
author | tb <> | 2023-01-13 14:46:08 +0000 |
---|---|---|
committer | tb <> | 2023-01-13 14:46:08 +0000 |
commit | f80a4029bb2f43fe5f0270857d48bc9d41d3ea4e (patch) | |
tree | 7e39f565ad41530ea5ed02d36032be18c204e2de /src/lib/libc | |
parent | 8fd11b09ad30a3305ae1c73fe6455f609f882196 (diff) | |
download | openbsd-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