projects
/
platform
/
upstream
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63363e
)
Make sure BN_sqr can never return a negative value.
author
Huzaifa Sidhpurwala
<huzaifas@redhat.com>
Thu, 26 Jun 2014 22:45:58 +0000
(23:45 +0100)
committer
Janusz Kozerski
<j.kozerski@samsung.com>
Mon, 20 Oct 2014 13:25:27 +0000
(15:25 +0200)
PR#3410
(cherry picked from commit
e14e764c0d5d469da63d0819c6ffc0e1e9e7f0bb
)
crypto/bn/bn_sqr.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_sqr.c
b/crypto/bn/bn_sqr.c
index
270d0cd
..
65bbf16
100644
(file)
--- a/
crypto/bn/bn_sqr.c
+++ b/
crypto/bn/bn_sqr.c
@@
-77,6
+77,7
@@
int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
if (al <= 0)
{
r->top=0;
+ r->neg = 0;
return 1;
}