[tor-commits] [tor/master] Try to convince coverity not to worry about this loop either

nickm at torproject.org nickm at torproject.org
Sun Jul 12 21:01:20 UTC 2015


commit b06759edfda17205b8a027b2a369abefcaaba4fc
Author: Nick Mathewson <nickm at torproject.org>
Date:   Sun Jul 12 17:01:17 2015 -0400

    Try to convince coverity not to worry about this loop either
---
 src/ext/ed25519/donna/modm-donna-32bit.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ext/ed25519/donna/modm-donna-32bit.h b/src/ext/ed25519/donna/modm-donna-32bit.h
index dfd76be..5f36df6 100644
--- a/src/ext/ed25519/donna/modm-donna-32bit.h
+++ b/src/ext/ed25519/donna/modm-donna-32bit.h
@@ -334,7 +334,8 @@ contract256_window4_modm(signed char r[64], const bignum256modm in) {
 static void
 contract256_slidingwindow_modm(signed char r[256], const bignum256modm s, int windowsize) {
 	int i,j,k,b;
-	int m = (1 << (windowsize - 1)) - 1, soplen = 256;
+	int m = (1 << (windowsize - 1)) - 1;
+        const int soplen = 256;
 	signed char *bits = r;
 	bignum256modm_element_t v;
 



More information about the tor-commits mailing list