mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Suppress coverity warning about overflowing in tor_memeq.
The unsigned underflow here is defined and intentional. CID 202482
This commit is contained in:
parent
0de7565dfd
commit
c43e45d0ea
@ -130,6 +130,7 @@ tor_memeq(const void *a, const void *b, size_t sz)
|
|||||||
* 1 & ((any_difference - 1) >> 8) == 0
|
* 1 & ((any_difference - 1) >> 8) == 0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*coverity[overflow]*/
|
||||||
return 1 & ((any_difference - 1) >> 8);
|
return 1 & ((any_difference - 1) >> 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user