[openssl/openssl] e6086d: Check for NULL cleanup function before using it in...

Neil Horman noreply at github.com
Fri Feb 16 14:12:10 UTC 2024


  Branch: refs/heads/openssl-3.2
  Home:   https://github.com/openssl/openssl
  Commit: e6086dd639e62aa6baa6223f38b31b515e4956d5
      https://github.com/openssl/openssl/commit/e6086dd639e62aa6baa6223f38b31b515e4956d5
  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