tor/changes/ticket31025
Nick Mathewson f55598f870 Coverity: different implementation for csiphash
Coverity has had trouble figuring out our csiphash implementation,
and has given spurious warnings about its behavior.

This patch changes the csiphash implementation when coverity is in
use, so that coverity can figure out that we are not about to read
beyond the provided input.

Closes ticket 31025.
2019-06-28 12:07:38 -04:00

6 lines
313 B
Plaintext

o Minor bugfixes (coverity):
- In our siphash implementation, when building for coverity, use memcpy
in place of a switch statement, so that coverity can tell we are not
accessing out-of-bounds memory. Fixes bug 31025; bugfix on
0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295.