artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc59184
)
Assign and test.
author
jsing
<jsing@openbsd.org>
Sat, 24 Jun 2023 16:19:52 +0000
(16:19 +0000)
committer
jsing
<jsing@openbsd.org>
Sat, 24 Jun 2023 16:19:52 +0000
(16:19 +0000)
lib/libcrypto/bn/bn_sqr.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/bn/bn_sqr.c
b/lib/libcrypto/bn/bn_sqr.c
index
5f3be22
..
56664e2
100644
(file)
--- a/
lib/libcrypto/bn/bn_sqr.c
+++ b/
lib/libcrypto/bn/bn_sqr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: bn_sqr.c,v 1.3
2 2023/06/24 16:10:23
jsing Exp $ */
+/* $OpenBSD: bn_sqr.c,v 1.3
3 2023/06/24 16:19:52
jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@
-284,8
+284,7
@@
BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
if (rr == NULL)
goto err;
- r_len = a->top * 2;
- if (r_len < a->top)
+ if ((r_len = a->top * 2) < a->top)
goto err;
if (!bn_wexpand(rr, r_len))
goto err;