Explorar el Código

Tell coverity to tolerate ed25519_verify

Nick Mathewson hace 10 años
padre
commit
920c63877c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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));
 }