Branch: refs/heads/master
Home: https://github.openssl.org/openssl/openssl
Commit: 8547cd6790881cbba0f20aa4ce048243065a24bf
https://github.openssl.org/openssl/openssl/commit/8547cd6790881cbba0f20aa4ce048243065a24bf
Author: Jiasheng Jiang
Date: 2022-06-17 (Fri, 17 Jun 2022)
Changed paths:
M crypto/asn1/a_time.c
Log Message:
---
crypto/asn1/a_time.c: Add check for OPENSSL_malloc
As the potential failure of the OPENSSL_malloc(),
timestamp_tm could be NULL and be used in ASN1_TIME_to_tm()
without check.
Therefore, it should be better to check the return value of
OPENSSL_malloc() and return error if fails.
Signed-off-by: Jiasheng Jiang
Reviewed-by: Todd Short
Reviewed-by: Tomas Mraz
(Merged from https://github.com/openssl/openssl/pull/18575)