From: tb Date: Fri, 12 Aug 2022 16:13:40 +0000 (+0000) Subject: Fix upper bound in a for loop (no functional change). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cecab4c7fb935f1fdf03adf7a5f2eac2f83a8021;p=openbsd Fix upper bound in a for loop (no functional change). --- diff --git a/regress/lib/libcrypto/bn/general/bn_isqrt.c b/regress/lib/libcrypto/bn/general/bn_isqrt.c index 0444666e11a..40b23f8dfd9 100644 --- a/regress/lib/libcrypto/bn/general/bn_isqrt.c +++ b/regress/lib/libcrypto/bn/general/bn_isqrt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_isqrt.c,v 1.5 2022/08/12 16:12:39 tb Exp $ */ +/* $OpenBSD: bn_isqrt.c,v 1.6 2022/08/12 16:13:40 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * @@ -76,7 +76,7 @@ check_tables(int print) for (i = 0; i < sizeof(fill) / sizeof(fill[0]); i++) { memset(q, 0, sizeof(q)); - for (j = 0; j <= fill[i]; j++) + for (j = 0; j < fill[i]; j++) q[(j * j) % fill[i]] = 1; if ((table = get_table(fill[i])) == NULL) {