mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +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:
@@ -218,6 +218,7 @@ safe_mem_is_zero(const void *mem, size_t sz)
|
||||
total |= *ptr++;
|
||||
}
|
||||
|
||||
/*coverity[overflow]*/
|
||||
return 1 & ((total - 1) >> 8);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user