[openssl-commits] [openssl] master update

Andy Polyakov appro at openssl.org
Sun May 24 19:27:50 UTC 2015


The branch master has been updated
       via  86e5d1e32b2d702a5fc777e612cd746e790098ef (commit)
      from  8b822d2566853ee5e313c37529f71336209b28ab (commit)


- Log -----------------------------------------------------------------
commit 86e5d1e32b2d702a5fc777e612cd746e790098ef
Author: Andy Polyakov <appro at openssl.org>
Date:   Wed May 20 09:24:36 2015 +0200

    bn/bn_gf2m.c: appease STACK, unstable code detector.
    
    RT#3852
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 crypto/bn/bn_gf2m.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/crypto/bn/bn_gf2m.c b/crypto/bn/bn_gf2m.c
index caad2d0..73e1e8f 100644
--- a/crypto/bn/bn_gf2m.c
+++ b/crypto/bn/bn_gf2m.c
@@ -450,8 +450,7 @@ int BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[])
             d0 = p[k] % BN_BITS2;
             d1 = BN_BITS2 - d0;
             z[n] ^= (zz << d0);
-            tmp_ulong = zz >> d1;
-            if (d0 && tmp_ulong)
+            if (d0 && (tmp_ulong = zz >> d1))
                 z[n + 1] ^= tmp_ulong;
         }
 


More information about the openssl-commits mailing list