[llvm-commits] [PATCH] AddressSanitizer: implement AsanGetEnv

Alexander Potapenko glider at google.com
Fri Jan 13 04:49:33 PST 2012


I've removed "static" from asan_linux.cc to fix compilation on Linux.

On Fri, Jan 13, 2012 at 4:35 PM, Alexander Potapenko <glider at google.com> wrote:
> This patch moves the code reading /proc/self/environ into AsanGetEnv
> in asan_linux.cc, because /proc is unavailable on Mac.
> Instead the Mac version of AsanGetEnv iterates over the array of
> environment variables obtained from _NSGetEnviron()
>
> --
> Alexander Potapenko
> Software Engineer
> Google Moscow



-- 
Alexander Potapenko
Software Engineer
Google Moscow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asan-getenv.patch
Type: text/x-patch
Size: 4725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120113/092b8aa2/attachment.bin>


More information about the llvm-commits mailing list