]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add negative integer check when using ASN1_BIT_STRING
authormlitre <martinlitre@mac.com>
Mon, 1 May 2023 09:07:21 +0000 (11:07 +0200)
committerPauli <pauli@openssl.org>
Wed, 3 May 2023 23:08:23 +0000 (09:08 +1000)
commit1258a8e4361320cd3cfaf9ede692492ce01034c8
treebe7ab4d4c87e49b2d4aec84f3dc122de2ac7f495
parenta75f707fcaaed5c9b26e0ddfc0e0529957a11a1d
Add negative integer check when using ASN1_BIT_STRING

The negative integer check is done to prevent potential overflow.
Fixes #20719.

CLA: trivial

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20862)
crypto/asn1/a_bitstr.c