From c43e45d0eaac67caa5b6c1449fb1e4931a410933 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 21 Aug 2014 10:44:13 -0400 Subject: Suppress coverity warning about overflowing in tor_memeq. The unsigned underflow here is defined and intentional. CID 202482 --- src/common/di_ops.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3-54-g00ecf