]> 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:42 +0000 (09:08 +1000)
commit3410cc0c8bbcf9216b42d47d7a61e379dd6fda89
tree8badcb58db9fc4d863429070006e4ad0a9dbf681
parent97fc9022f37cff4382bb9e58899d6cf2d4d20e74
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)

(cherry picked from commit 1258a8e4361320cd3cfaf9ede692492ce01034c8)
crypto/asn1/a_bitstr.c