<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Aug 16, 2016 at 11:31 PM Mehdi Amini via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: mehdi_amini<br>
Date: Wed Aug 17 01:23:09 2016<br>
New Revision: 278907<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=278907&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=278907&view=rev</a><br>
Log:<br>
[LTO] Introduce an Output class to wrap the output stream creation (NFC)<br>
<br>
Summary:<br>
While NFC for now, this will allow more flexibility on the client side<br>
to hold state necessary to back up the stream.<br>
Also when adding caching, this class will grow in complexity.<br></blockquote><div><br></div><div>I think this introduced a use-after-free here:</div><div><a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/15580/steps/check-llvm%20asan/logs/stdio">http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/15580/steps/check-llvm%20asan/logs/stdio</a><br></div><div><br></div><div>Also seems to have made a Windows bot red which often happens with Twine-related use-after-free.</div><div><br></div><div>I think I've fixed this in r278912, but figured I'd mention it in case you end up wanting a different fix.</div></div></div>