C-Utils Repository branch, master, updated. 32038f978eabbe425cd012cb973ef82c3d87f610
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "C-Utils Repository". The branch, master has been updated via 32038f978eabbe425cd012cb973ef82c3d87f610 (commit) from 95425234473e24e432a073547f5701559dd6c83d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 32038f978eabbe425cd012cb973ef82c3d87f610 Author: Phil Carns <[email protected]> Date: Thu May 29 14:46:27 2014 -0400 prevent jenkins hash from triggerin asan errors ----------------------------------------------------------------------- Summary of changes: src/lookup3.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) Diff of changes: diff --git a/src/lookup3.c b/src/lookup3.c index bfb6811..98d07a9 100644 --- a/src/lookup3.c +++ b/src/lookup3.c @@ -2,6 +2,15 @@ #include "jenkins-hash.h" #include "c-utils-config.h" +/* used to prevent address sanitizer from complaining about jenkins hash + * algorithm + */ +#if defined(__clang__) || defined (__GNUC__) +# define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) +#else +# define ATTRIBUTE_NO_SANITIZE_ADDRESS +#endif + /* ------------------------------------------------------------------------------- lookup3.c, by Bob Jenkins, May 2006, Public Domain. @@ -466,6 +475,7 @@ static uint32_t bj_hashlittle( const void *key, size_t length, uint32_t initval) * the key. *pc is better mixed than *pb, so use *pc first. If you want * a 64-bit value do something like "*pc + (((uint64_t)*pb)<<32)". */ +ATTRIBUTE_NO_SANITIZE_ADDRESS void bj_hashlittle2( const void *key, /* the key to hash */ size_t length, /* length of the key */ hooks/post-receive -- C-Utils Repository
participants (1)
-
noreply@mcs.anl.gov