[openssl-commits] [openssl] master update
Andy Polyakov
appro at openssl.org
Mon Feb 9 14:55:44 UTC 2015
The branch master has been updated
via c2cfc956e5ef2de480cded493b88926c7f29be18 (commit)
from 9c7a780bbebc1b6d87dc38a6aa3339033911a8bb (commit)
- Log -----------------------------------------------------------------
commit c2cfc956e5ef2de480cded493b88926c7f29be18
Author: Andy Polyakov <appro at openssl.org>
Date: Mon Feb 9 15:54:58 2015 +0100
bn/bn_add.c: fix dead code elimination that went bad.
Reviewed-by: Matt Caswell <matt at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
crypto/bn/bn_add.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/bn/bn_add.c b/crypto/bn/bn_add.c
index e09451d..57e1cda 100644
--- a/crypto/bn/bn_add.c
+++ b/crypto/bn/bn_add.c
@@ -222,7 +222,7 @@ int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
break;
}
}
- memcpy(rp, ap, sizeof(*rp) * (max - i));
+ memcpy(rp, ap, sizeof(*rp) * dif);
r->top = max;
r->neg = 0;
More information about the openssl-commits
mailing list