[llvm-commits] Fix a use-after-return in AddressSanitizer runtime

Alexander Potapenko glider at google.com
Thu Dec 15 07:32:17 PST 2011


The attached patch fixes a use-after-return in ASan runtime.
Previously stack-local objects representing global variables were
passed to RegisterGlobal and put into the globals list that was
scanned later, when those objects had been overwritten.

Related changes: s/Print/Report in RegisterGlobal (we may need the
PIDs when analyzing the logs), poison the memory returned by the
LowLevelAllocator to prevent possible corruptions.


Alexander Potapenko
Software Engineer
Google Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uar-global.patch
Type: text/x-patch
Size: 1455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111215/9f5b94ea/attachment.bin>


More information about the llvm-commits mailing list