diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-07-12 16:59:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-07-12 16:59:37 -0400 |
commit | 920c63877cece72ba02e54234567a1e76dd14b9b (patch) | |
tree | bc68af9491728b0e9ac775ef1d622bd536c4c762 /src/ext/ed25519 | |
parent | eb4604c35a97a27d2a16786c81a5499c46914dad (diff) | |
download | tor-920c63877cece72ba02e54234567a1e76dd14b9b.tar.gz tor-920c63877cece72ba02e54234567a1e76dd14b9b.zip |
Tell coverity to tolerate ed25519_verify
Diffstat (limited to 'src/ext/ed25519')
-rw-r--r-- | src/ext/ed25519/donna/ed25519-donna.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ext/ed25519/donna/ed25519-donna.h b/src/ext/ed25519/donna/ed25519-donna.h index de1120f46f..64561d3288 100644 --- a/src/ext/ed25519/donna/ed25519-donna.h +++ b/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)); } |