diff options
author | schwarze <> | 2020-06-04 21:21:03 +0000 |
---|---|---|
committer | schwarze <> | 2020-06-04 21:21:03 +0000 |
commit | be3505dc014b9b7022575b6fe4f9c78c2080281c (patch) | |
tree | 2920ef908eabfe843f01bfd04a3aaf4eff0a1cec /src/lib/libcrypto/man/ASN1_TIME_set.3 | |
parent | 249e70083469fe402a1366e4a02f52cb145be012 (diff) | |
download | openbsd-be3505dc014b9b7022575b6fe4f9c78c2080281c.tar.gz openbsd-be3505dc014b9b7022575b6fe4f9c78c2080281c.tar.bz2 openbsd-be3505dc014b9b7022575b6fe4f9c78c2080281c.zip |
When X509_ATTRIBUTE_create() receives an invalid NID (e.g., -1), return
failure rather than silently constructing a broken X509_ATTRIBUTE object
that might cause NULL pointer accesses later on. This matters because
X509_ATTRIBUTE_create() is used by documented API functions like
PKCS7_add_attribute(3) and the NID comes straight from the user.
This fixes a bug found while working on documentation.
OK tb@ and "thanks" bluhm@
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_TIME_set.3')
0 files changed, 0 insertions, 0 deletions