Selaa lähdekoodia

Tell coverity to tolerate ed25519_verify

Nick Mathewson 10 vuotta sitten
vanhempi
commit
920c63877c
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/ext/ed25519/donna/ed25519-donna.h

+ 1 - 0
src/ext/ed25519/donna/ed25519-donna.h

@@ -68,6 +68,7 @@ ed25519_verify(const unsigned char *x, const unsigned char *y, size_t len) {
 	size_t differentbits = 0;
 	while (len--)
 		differentbits |= (*x++ ^ *y++);
+        /*coverity[overflow]*/
 	return (int) (1 & ((differentbits - 1) >> 8));
 }