From: Nick Mathewson Date: Thu, 21 Aug 2014 14:44:13 +0000 (-0400) Subject: Suppress coverity warning about overflowing in tor_memeq. X-Git-Tag: tor-0.2.6.1-alpha~189^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c43e45d0eaac67caa5b6c1449fb1e4931a410933;p=thirdparty%2Ftor.git Suppress coverity warning about overflowing in tor_memeq. The unsigned underflow here is defined and intentional. CID 202482 --- diff --git a/src/common/di_ops.c b/src/common/di_ops.c index 14a1443400..f03b2b75ec 100644 --- a/src/common/di_ops.c +++ b/src/common/di_ops.c @@ -130,6 +130,7 @@ tor_memeq(const void *a, const void *b, size_t sz) * 1 & ((any_difference - 1) >> 8) == 0 */ + /*coverity[overflow]*/ return 1 & ((any_difference - 1) >> 8); }