-
Notifications
You must be signed in to change notification settings - Fork 777
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix technical UB + compiler warnings
Summary: * XXH*_update functions technically have UB on pointer arithmetic beyond the bounds of the input object, which can trigger a compiler warning in the case of statically sized input buffer. This can be solved with cast to uintptr_t where available. (In theory if your buffer is close to an extreme of your address space, it could still over/underflow, but eh.) * typedef XXH_endianess in implementation is unused, so removed. (When it was in xxhash.c it would cause compiler warning.) Test Plan: existing tests
- Loading branch information
1 parent
2c611a7
commit 4d6083b
Showing
1 changed file
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters