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:
Nick Mathewson 2014-08-21 10:44:13 -04:00
parent 7bc25b5a78
commit 917e1042f7

View file

@ -218,6 +218,7 @@ safe_mem_is_zero(const void *mem, size_t sz)
total |= *ptr++;
}
/*coverity[overflow]*/
return 1 & ((total - 1) >> 8);
}