openssl/crypto/encode_decode
Neil Horman cf57c3ecfa 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@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23069)
2024-02-16 08:34:11 -05:00
..
build.info
decoder_err.c err: rename err_load_xxx_strings_int functions 2021-05-26 13:01:47 +10:00
decoder_lib.c Copyright year updates 2023-09-07 09:59:15 +01:00
decoder_meth.c Copyright year updates 2023-09-07 09:59:15 +01:00
decoder_pkey.c ossl_decoder_cache_flush(): Do not raise an error if there is no cache 2023-12-06 13:59:13 +01:00
encoder_err.c Update copyright year 2021-06-17 13:24:59 +01:00
encoder_lib.c Check for NULL cleanup function before using it in encoder_process 2024-02-16 08:34:11 -05:00
encoder_local.h Copyright year updates 2023-09-07 09:59:15 +01:00
encoder_meth.c Copyright year updates 2023-09-07 09:59:15 +01:00
encoder_pkey.c Copyright year updates 2023-09-07 09:59:15 +01:00