svn commit: r296597 - stable/9/crypto/openssl/crypto/bn

Xin LI delphij at FreeBSD.org
Thu Mar 10 03:57:39 UTC 2016


Author: delphij
Date: Thu Mar 10 03:57:37 2016
New Revision: 296597
URL: https://svnweb.freebsd.org/changeset/base/296597

Log:
  Fix a regression introduced in r296462 that causes out-of-bound access in
  the BN code and have slipped my review.
  
  PR:		207783
  Submitted by:	dim

Modified:
  stable/9/crypto/openssl/crypto/bn/bn_exp.c

Modified: stable/9/crypto/openssl/crypto/bn/bn_exp.c
==============================================================================
--- stable/9/crypto/openssl/crypto/bn/bn_exp.c	Thu Mar 10 02:43:10 2016	(r296596)
+++ stable/9/crypto/openssl/crypto/bn/bn_exp.c	Thu Mar 10 03:57:37 2016	(r296597)
@@ -758,7 +758,7 @@ int BN_mod_exp_mont_consttime(BIGNUM *rr
          * Fetch the appropriate pre-computed value from the pre-buf
          */
         if (!MOD_EXP_CTIME_COPY_FROM_PREBUF
-            (computeTemp, top, powerbuf, wvalue, numPowers))
+            (computeTemp, top, powerbuf, wvalue, window))
             goto err;
 
         /* Multiply the result into the intermediate result */


More information about the svn-src-stable-9 mailing list