[cfe-commits] [PATCH] Disable source fortification on Darwin with AddressSanitizer

Alexander Potapenko glider at google.com
Wed Sep 19 03:04:22 PDT 2012


Hi all,

Because source fortification has been turned on in Xcode headers
recently, we have to disable it when building the code with
AddressSanitizer.
The proposed patch (see attached) defines _FORTIFY_SOURCE=0 if
-faddress-sanitizer is passed to the compiler.
Because other systems are not affected by the change, I've decided to
run the test only on Darwin (and introduced the 'system-darwin' config
feature)

Codereview link: https://codereview.appspot.com/6534045

-- 
Alexander Potapenko
Software Engineer
Google Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin-asan-nofortify.patch
Type: application/octet-stream
Size: 1620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120919/740a5f25/attachment.obj>


More information about the cfe-commits mailing list