[openssl/openssl] 592d0d: Check for NULL cleanup function before using it in...
Neil Horman
noreply at github.com
Fri Feb 16 14:11:42 UTC 2024
Branch: refs/heads/openssl-3.1
Home: https://github.com/openssl/openssl
Commit: 592d0d318685e85fba998d3b259fd644dee6f340
https://github.com/openssl/openssl/commit/592d0d318685e85fba998d3b259fd644dee6f340
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)
(cherry picked from commit cf57c3ecfa416afbc47d36633981034809ee6792)
More information about the openssl-commits
mailing list