diff options
author | tb <> | 2023-03-12 11:49:02 +0000 |
---|---|---|
committer | tb <> | 2023-03-12 11:49:02 +0000 |
commit | 1c853f7dfee3676e9dd94219037089d9f783f6b3 (patch) | |
tree | 1249037175234f9adee9132b9d5becc21fca3206 /src/lib/libc | |
parent | 5c65d83b2f3c5c7766cd17895926c7238e3a6705 (diff) | |
download | openbsd-1c853f7dfee3676e9dd94219037089d9f783f6b3.tar.gz openbsd-1c853f7dfee3676e9dd94219037089d9f783f6b3.tar.bz2 openbsd-1c853f7dfee3676e9dd94219037089d9f783f6b3.zip |
Avoid an 1 byte out-of-bounds read in ASN1_PRINTABLE_type()
In case the input is not NUL terminated, the reversed check for length
and terminating NUL results in a one-byte overread. The documentation
says that the input should be a string, but in ASN.1 land you never
know...
Reported by Guido Vranken a while back
ok beck
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions