alloc.c (mark_memory): Guard the "no_address_safety_analysis" function
attribute, so we only use it if it exists in the compiler.
This commit is contained in:
parent
d923b542aa
commit
b41253a389
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-07-11 John Wiegley <johnw@newartisans.com>
|
||||
|
||||
* alloc.c (mark_memory): Guard the "no_address_safety_analysis"
|
||||
function attribute, so we only use it if it exists in the
|
||||
compiler.
|
||||
|
||||
2012-07-11 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
Avoid call to strlen in fast_c_string_match_ignore_case.
|
||||
|
|
|
@ -4641,12 +4641,14 @@ mark_maybe_pointer (void *p)
|
|||
|
||||
static void
|
||||
mark_memory (void *start, void *end)
|
||||
#ifdef __clang__
|
||||
#if defined (__clang__) && defined (__has_feature)
|
||||
#if __has_feature(address_sanitizer)
|
||||
/* Do not allow -faddress-sanitizer to check this function, since it
|
||||
crosses the function stack boundary, and thus would yield many
|
||||
false positives. */
|
||||
__attribute__((no_address_safety_analysis))
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
void **pp;
|
||||
int i;
|
||||
|
|
Loading…
Add table
Reference in a new issue