[openssl/openssl] 29c0d8: bn: Properly error out if aliasing return value wi...

Tomáš Mráz noreply at github.com
Thu Oct 26 14:28:16 UTC 2023


  Branch: refs/heads/openssl-3.2
  Home:   https://github.com/openssl/openssl
  Commit: 29c0d8156629a988db5a4af30704736579f7c313
      https://github.com/openssl/openssl/commit/29c0d8156629a988db5a4af30704736579f7c313
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    M crypto/bn/bn_exp.c
    M crypto/bn/bn_mod.c
    M doc/man3/BN_add.pod
    M doc/man3/BN_mod_inverse.pod
    M test/bntest.c

  Log Message:
  -----------
  bn: Properly error out if aliasing return value with modulus

Test case amended from code initially written by Bernd Edlinger.

Fixes #21110

Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22421)

(cherry picked from commit af0025fc40779cc98c06db7e29936f9d5de8cc9e)




More information about the openssl-commits mailing list