Comment #3 on issue 274 by [email protected]: Incorrect shadow
values for global string constants on OSX
http://code.google.com/p/address-sanitizer/issues/detail?id=274
This is a regression caused by the recent changes to string handling.
According to
https://code.google.com/p/address-sanitizer/issues/detail?id=32 the strings
in __TEXT,__cstring,cstring_literals were previously marked as
linker_private and thus not instrumented. Now they've become internal, so
ASan instruments them.
However strings in the cstring_literals section are mergeable:
"""
A cstring_literals section contains null-terminated literal C language
character strings. The link editor places only one copy of each literal
into the output file's section and relocates references to different copies
of the same literal to the one copyin the output file. There can be no
relocation entries for a section of this type, and all references to
literals in this section must be inside the address range for the specific
literal being referenced. The last byte in a section of this type must be a
null byte, and the strings can't contain null bytes in their bodies. An
example of a cstring_literals section is one for the literal strings that
appear in the body of an ANSI C function where the compiler chooses to make
such strings read only.
"""
(from the Mac OS Assembler Guide)
, thus we should not instrument them.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.