[openssl/openssl] cf57c3: Check for NULL cleanup function before using it in...
Neil Horman
noreply at github.com
Fri Feb 16 14:08:58 UTC 2024
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: cf57c3ecfa416afbc47d36633981034809ee6792
https://github.com/openssl/openssl/commit/cf57c3ecfa416afbc47d36633981034809ee6792
Author: Neil Horman <nhorman at openssl.org>
Date: 2024-02-16 (Fri, 16 Feb 2024)
Changed paths:
M crypto/encode_decode/encoder_lib.c
Log Message:
-----------
Check for NULL cleanup function before using it in encoder_process
encoder_process assumes a cleanup function has been set in the currently
in-use encoder during processing, which can lead to segfaults if said
function hasn't been set
Add a NULL check for this condition, returning -1 if it is not set
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23069)
More information about the openssl-commits
mailing list