[openssl/openssl] 3baa35: 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.0
  Home:   https://github.com/openssl/openssl
  Commit: 3baa3531be6374428ba0e6e650f9dc2c2b4827a6
      https://github.com/openssl/openssl/commit/3baa3531be6374428ba0e6e650f9dc2c2b4827a6
  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