]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix BIO_f_asn1() to properly report some errors
authorMatt Caswell <matt@openssl.org>
Tue, 6 Dec 2022 14:35:53 +0000 (14:35 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Dec 2022 10:01:06 +0000 (11:01 +0100)
commit0f48050b5a8881870b8e25382f817b3a3dc14f16
tree901423a05c023115886accc0b8e7008df3adf8e7
parent9e5bd8923bff3e4f0cbba05c7dadfe289c66eb6f
Fix BIO_f_asn1() to properly report some errors

Some things that may go wrong in asn1_bio_write() are serious errors
that should be reported as -1, rather than 0 (which just means "we wrote
no data").

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19918)
crypto/asn1/bio_asn1.c