]> git.ipfire.org Git - thirdparty/openssl.git/commit
asn1: raise NOT_ENOUGH_DATA on header EOF
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Sat, 11 Oct 2025 12:42:59 +0000 (20:42 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 18 Nov 2025 18:29:31 +0000 (19:29 +0100)
commit9eb6922c5982baf116fe31661f921f1557640294
tree9cc0f2bcf154dad6cdf534c2397755df0038345a
parent87a4607668e959188aa5b3c5482d5cf7d18adf63
asn1: raise NOT_ENOUGH_DATA on header EOF

If BIO_read returns 0 with no buffered data, raise ASN1_R_NOT_ENOUGH_DATA
so callers see a specific error instead of a generic -1.

Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28883)
crypto/asn1/a_d2i_fp.c