<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 6:14 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Have you thought about force emitting the memcpy metadata that describes the padding holes in the struct, and use that to predicate the instrumentation?<div><br></div><div>While there is some risk that the optimizer loses this information, frankly, we want to find all those places and fix them.</div></div></blockquote><div><br></div><div>This sounds like an overkill (or I don't understand your proposal). </div><div>mempcy emitted by clang is no more than optimization and we simply disable it when inserting the poisoned paddings. </div><div>This is the second place where I had to disable memcpy and with this patch I successfully run multiple MLOC. </div><div>There might be 1 or 2 more places where we'll need to disable memcpy and that's all. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Nov 6, 2014 at 8:01 PM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi majnemer, rsmith,<br>
<br>
If we've added poisoned paddings to a type do not emit memcpy for operator=.<br>
<br>
<a href="http://reviews.llvm.org/D6160" target="_blank">http://reviews.llvm.org/D6160</a><br>
<br>
Files:<br>
  lib/CodeGen/CGExprCXX.cpp<br>
  test/CodeGen/sanitize-address-field-padding.cpp<br>
<br></div></div>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>