diff options
author | tb <> | 2023-03-12 11:49:02 +0000 |
---|---|---|
committer | tb <> | 2023-03-12 11:49:02 +0000 |
commit | b47b779f39c9bb247f8b61b2cf22ed2c7941ef56 (patch) | |
tree | 1249037175234f9adee9132b9d5becc21fca3206 /src/lib/libcrypto/bio/bio_lib.c | |
parent | e6d5f42388b2168766dd16c5b2092770c522dc7e (diff) | |
download | openbsd-b47b779f39c9bb247f8b61b2cf22ed2c7941ef56.tar.gz openbsd-b47b779f39c9bb247f8b61b2cf22ed2c7941ef56.tar.bz2 openbsd-b47b779f39c9bb247f8b61b2cf22ed2c7941ef56.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/libcrypto/bio/bio_lib.c')
0 files changed, 0 insertions, 0 deletions