]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fixes segfault occurrence in PEM_write()
authorvaldaarhun <icegambit91@gmail.com>
Mon, 25 Jul 2022 13:19:19 +0000 (18:49 +0530)
committerPauli <pauli@openssl.org>
Fri, 29 Jul 2022 02:39:02 +0000 (12:39 +1000)
commit205957405d08ef199e6ab654e333a627bbca9ccc
treed1ed5fd58dc422983a15a7048f0cfc56d28f4f6c
parentdf274c334c523f7375d5aa60ff4b9a846c3e2a6c
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@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18865)
crypto/pem/pem_lib.c