[openssl/openssl] 8195e5: Fix incomplete error check on RSA_public_decrypt()

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


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 8195e59986031f6f33e2569551d771904433fa04
      https://github.com/openssl/openssl/commit/8195e59986031f6f33e2569551d771904433fa04
  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)




More information about the openssl-commits mailing list