<br><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 11:13 AM, Sebastian Redl <span dir="ltr"><<a href="mailto:sebastian.redl@getdesigned.at">sebastian.redl@getdesigned.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 06.02.2012, at 18:56, Kostya Serebryany wrote:<br>
<br>
> Author: kcc<br>
> Date: Mon Feb  6 11:56:38 2012<br>
> New Revision: 149875<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=149875&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=149875&view=rev</a><br>
> Log:<br>
> [asan] The first version of Windows malloc interceptors, patch by <a href="mailto:timurrrr@google.com">timurrrr@google.com</a><br>
><br>
</div><div class="im">> +// FIXME: Simply defining functions with the same signature in *.obj<br>
> +// files overrides the standard functions in *.lib<br>
> +// This works well for simple helloworld-like tests but might need to be<br>
> +// revisited in the future.<br>
<br>
</div>Do you support mixing non-asan modules (DLLs) with asan modules? </blockquote><div><br></div><div>If you mean modules instrumented with asan compiler module vs non-instrumented modules -- yes. </div><div>(although we had at least one bug in the past related to this case)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can see trouble there, if a module allocates with native malloc and another frees with asan malloc, or vice versa.<br>
</blockquote><div><br></div><div>There is only one malloc in the process. Usually. </div><div>If you do end up with two mallocs in the process and they are mixed as you describe -- you will be in trouble. </div><div><br></div>
<div>(The question is not related to this particular change, right?)</div><div> </div><div>--kcc </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Sebastian<br>
<br>
</font></span></blockquote></div><br>