projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8562801
)
avoid infinite loop
author
Bodo Möller
<bodo@openssl.org>
Thu, 15 Mar 2001 11:31:37 +0000
(11:31 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Thu, 15 Mar 2001 11:31:37 +0000
(11:31 +0000)
crypto/ec/ectest.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ectest.c
b/crypto/ec/ectest.c
index fd294bb2a808f01883e9b9acde0c3f94a447b4a9..e221a322c0ef3c18443d70b06d6537e3011596df 100644
(file)
--- a/
crypto/ec/ectest.c
+++ b/
crypto/ec/ectest.c
@@
-148,6
+148,7
@@
int main(int argc, char *argv[])
BIGNUM *x, *y, *z;
unsigned char buf[100];
size_t i, len;
+ int k;
/* enable memory leak checking unless explicitly disabled */
if (!((getenv("OPENSSL_DEBUG_MEMORY") != NULL) && (0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off"))))
@@
-230,8
+231,11
@@
int main(int argc, char *argv[])
}
fprintf(stdout, "A cyclic subgroup:\n");
+ k = 100;
do
{
+ if (k-- == 0) ABORT;
+
if (EC_POINT_is_at_infinity(group, P))
fprintf(stdout, " point at infinity\n");
else