[openssl/openssl] 70f589: Fix memory leak in BN_rand_range()

Sahil Siddiq noreply at github.com
Wed Aug 17 16:45:02 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 70f589ae41928edda18470ba1c3df82af02a92b3
      https://github.com/openssl/openssl/commit/70f589ae41928edda18470ba1c3df82af02a92b3
  Author: valdaarhun <icegambit91 at gmail.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

  Changed paths:
    M crypto/bn/bn_rand.c

  Log Message:
  -----------
  Fix memory leak in BN_rand_range()

The patch enables BN_rand_range() to exit immediately
if BIGNUM *rnd is NULL.

CLA: trivial

Fixes: #18951

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18982)




More information about the openssl-commits mailing list