[openssl/openssl] 9c2c76: Fix incomplete error check on RSA_public_decrypt()

Niels Dossche noreply at github.com
Tue Feb 28 03:37:47 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 9c2c763fc34d39c6fc156e0bd1a18eb3219ca932
      https://github.com/openssl/openssl/commit/9c2c763fc34d39c6fc156e0bd1a18eb3219ca932
  Author: ndossche <niels.dossche at ugent.be>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M providers/implementations/signature/rsa_sig.c

  Log Message:
  -----------
  Fix incomplete error check on RSA_public_decrypt()

According to the documentation and my analysis tool RSA_public_decrypt()
can return -1 on error, but this is not checked. Fix it by changing the
error condition.

CLA: trivial

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20250)

(cherry picked from commit 8195e59986031f6f33e2569551d771904433fa04)




More information about the openssl-commits mailing list