mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Suppress coverity warning about overflowing in safe_mem_is_zero
The unsigned underflow here is defined and intentional. CID 202482
This commit is contained in:
parent
7bc25b5a78
commit
917e1042f7
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ safe_mem_is_zero(const void *mem, size_t sz)
|
|||
total |= *ptr++;
|
||||
}
|
||||
|
||||
/*coverity[overflow]*/
|
||||
return 1 & ((total - 1) >> 8);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue