diff options
author | Andy Polyakov <appro@openssl.org> | 2015-02-09 15:54:58 +0100 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2015-02-09 15:54:58 +0100 |
commit | c2cfc956e5ef2de480cded493b88926c7f29be18 (patch) | |
tree | 2180424869439e05f085acd3950a3382d5a90120 /crypto/bn/bn_add.c | |
parent | Fix memory leak reporting. (diff) | |
download | openssl-c2cfc956e5ef2de480cded493b88926c7f29be18.tar.xz openssl-c2cfc956e5ef2de480cded493b88926c7f29be18.zip |
bn/bn_add.c: fix dead code elimination that went bad.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/bn/bn_add.c')
-rw-r--r-- | crypto/bn/bn_add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_add.c b/crypto/bn/bn_add.c index e09451d88b..57e1cdac16 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; |