Skip to content
Commit a812f8fc authored by bonniegong's avatar bonniegong Committed by Pauli
Browse files

check i2d_ASN1_TYPE return value



add a length check to the return value of function i2d_ASN1_TYPE. Return an error instead of trying to malloc a negative number.

CLA: trivial

Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
Reviewed-by: default avatarPaul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14828)

(cherry picked from commit c65abf22)
parent 9a48d4a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment