[openssl/openssl] 6b42c7: Add return value check of X509V3_add_value() in X5...

Tomas Mraz noreply at reply.github.openssl.org
Tue Apr 12 11:07:50 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.openssl.org/openssl/openssl
  Commit: 6b42c74b0677560017df08c452342355adfd1ecc
      https://github.openssl.org/openssl/openssl/commit/6b42c74b0677560017df08c452342355adfd1ecc
  Author: Zhou Qingyang <zhou1615 at umn.edu>
  Date:   2022-04-12 (Tue, 12 Apr 2022)

  Changed paths:
    M crypto/x509/v3_utl.c

  Log Message:
  -----------
  Add return value check of X509V3_add_value() in X509V3_parse_list()

X509V3_add_value() will return 0 on malloc failure, which could lead to
err logic in X509V3_parse_list().

Fix this by adding return value check of X509V3_add_value().

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18077)

(cherry picked from commit bcd5645b34c319b8e4d72d6850ead80e85f18921)




More information about the openssl-commits mailing list