diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-08-21 10:44:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-08-21 10:44:13 -0400 |
commit | c43e45d0eaac67caa5b6c1449fb1e4931a410933 (patch) | |
tree | dd2e19bcbc6fbc9e316161b152120eff568bf954 | |
parent | 0de7565dfd4498e9bbc2ab295e5b160bab6e1867 (diff) | |
download | tor-c43e45d0eaac67caa5b6c1449fb1e4931a410933.tar.gz tor-c43e45d0eaac67caa5b6c1449fb1e4931a410933.zip |
Suppress coverity warning about overflowing in tor_memeq.
The unsigned underflow here is defined and intentional.
CID 202482
-rw-r--r-- | src/common/di_ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |