]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/bio/bio_print.c: avoid integer overflow when reading width/precision
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 5 Aug 2025 12:51:22 +0000 (14:51 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 29 Aug 2025 16:18:30 +0000 (12:18 -0400)
commita8d02c5ca706384c53c941b3041c326c62a6f09e
treecc5ebfd3f4d9227e915c897762750b7bcf400920
parent7777db81f89020e08ded92cde6c2da3139a5e200
crypto/bio/bio_print.c: avoid integer overflow when reading width/precision

Both width and precision are "decimal digit strings" of unspecified size,
but we can realistically cap it at INT_MAX.

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28177)
crypto/bio/bio_print.c