mirror of
https://github.com/mirror/make.git
synced 2025-01-04 09:20:43 +08:00
* src/hash.c (jash_string): [SV 54980] Avoid ASAN error
This commit is contained in:
parent
b5de783f77
commit
9ce370249b
@ -446,6 +446,9 @@ unsigned jhash(unsigned const char *k, int length)
|
|||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* This function performs magic which is correct but causes ASAN heartburn
|
||||||
|
when we pass in a global constant string (at least). */
|
||||||
|
__attribute__((no_sanitize_address))
|
||||||
unsigned jhash_string(unsigned const char *k)
|
unsigned jhash_string(unsigned const char *k)
|
||||||
{
|
{
|
||||||
unsigned int a, b, c;
|
unsigned int a, b, c;
|
||||||
|
@ -179,6 +179,8 @@ sub toplevel
|
|||||||
foreach (# UNIX-specific things
|
foreach (# UNIX-specific things
|
||||||
'TZ', 'TMPDIR', 'HOME', 'USER', 'LOGNAME', 'PATH',
|
'TZ', 'TMPDIR', 'HOME', 'USER', 'LOGNAME', 'PATH',
|
||||||
'LD_LIBRARY_PATH',
|
'LD_LIBRARY_PATH',
|
||||||
|
# SAN things
|
||||||
|
'ASAN_OPTIONS', 'UBSAN_OPTIONS',
|
||||||
# Purify things
|
# Purify things
|
||||||
'PURIFYOPTIONS',
|
'PURIFYOPTIONS',
|
||||||
# Windows NT-specific stuff
|
# Windows NT-specific stuff
|
||||||
|
Loading…
Reference in New Issue
Block a user