diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-08-21 10:44:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-08-21 11:22:42 -0400 |
commit | 917e1042f75e9db2836def41210fa756c8ca3a85 (patch) | |
tree | f98497c4d54a7894e7809b9ccf91b3e78c5dc486 /src/common/di_ops.c | |
parent | 7bc25b5a78bfaa0b04eb55470a2b36cf9a466d72 (diff) | |
download | tor-917e1042f75e9db2836def41210fa756c8ca3a85.tar.gz tor-917e1042f75e9db2836def41210fa756c8ca3a85.zip |
Suppress coverity warning about overflowing in safe_mem_is_zero
The unsigned underflow here is defined and intentional.
CID 202482
Diffstat (limited to 'src/common/di_ops.c')
-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 f03b2b75ec..a8bfd02532 100644 --- a/src/common/di_ops.c +++ b/src/common/di_ops.c @@ -218,6 +218,7 @@ safe_mem_is_zero(const void *mem, size_t sz) total |= *ptr++; } + /*coverity[overflow]*/ return 1 & ((total - 1) >> 8); } |