r147303 (I also added a README.txt entry). <div>Please talk to the mach_override maintainers, they may want to accept some (or all) of our patches. </div><div><br></div><div>--kcc <br><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 12:24 AM, Alexander Potapenko <span dir="ltr"><<a href="mailto:glider@google.com">glider@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The code instrumented with ASan may have its own instance of the<br>
mach_override library.<br>
In this case chances are that functions from it will be called from<br>
mach_override_ptr() during ASan initialization.<br>
This may lead to crashes (if those functions are instrumented) or<br>
incorrect behavior (if the implementations differ).<br>
<br>
The attached patch renames mach_override_ptr() into<br>
__asan_mach_override_ptr() and makes the rest of the mach_override<br>
internals hidden.<br>
The corresponding AddressSanitizer bug is<br>
<a href="http://code.google.com/p/address-sanitizer/issues/detail?id=22" target="_blank">http://code.google.com/p/address-sanitizer/issues/detail?id=22</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Alexander Potapenko<br>
Software Engineer<br>
Google Moscow<br>
</font></span></blockquote></div><br></div>