[openssl/openssl] 683480: Fixes segfault occurrence in PEM_write()

Sahil Siddiq noreply at github.com
Fri Jul 29 02:41:00 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 683480726f6ab46216e30c7505d1a3c4ec90ace9
      https://github.com/openssl/openssl/commit/683480726f6ab46216e30c7505d1a3c4ec90ace9
  Author: valdaarhun <icegambit91 at gmail.com>
  Date:   2022-07-29 (Fri, 29 Jul 2022)

  Changed paths:
    M crypto/pem/pem_lib.c

  Log Message:
  -----------
  Fixes segfault occurrence in PEM_write()

Checks if header is NULL or not before calling strlen().

CLA: trivial

Fixes #18825

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Ben Kaduk <kaduk at mit.edu>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18865)

(cherry picked from commit 205957405d08ef199e6ab654e333a627bbca9ccc)




More information about the openssl-commits mailing list