[openssl/openssl] 7efc65: Make RSA_generate_multi_prime_key() not segfault i...

Shane noreply at github.com
Thu Jan 12 15:51:21 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 7efc653c43851dcbc3ec043baded029c7d31ab9f
      https://github.com/openssl/openssl/commit/7efc653c43851dcbc3ec043baded029c7d31ab9f
  Author: slontis <shane.lontis at oracle.com>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M crypto/rsa/rsa_gen.c
    M test/rsa_mp_test.c

  Log Message:
  -----------
  Make RSA_generate_multi_prime_key() not segfault if e is NULL.

This is not a big problem for higher level keygen, as these set e
beforehand to a default value. But the logic at the lower level is
incorrect since it was doing a NULL check in one place but then
segfaulting during a later BN_copy().

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/20025)




More information about the openssl-commits mailing list