<div dir="ltr">They are examples in which we create invalid outputs for broken inputs. My point still stands. It is not always unacceptable to create invalid outputs in such case.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 11:38 AM, Igor Kudrin <span dir="ltr"><<a href="mailto:ikudrin.dev@gmail.com" target="_blank">ikudrin.dev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ikudrin added a comment.<br>
<br>
Your first example violates the expected format of archive, if I understand it right. We may rely on underlying library and its checks in that case.<br>
<br>
I have no comment for the second example. May be it's hard to imagine other command or something.<br>
<br>
But in this case, I just wanted to detect our own ABI violation. Not to implement that case, as it might be rare, just detect. And I wanted to be honest with our users and not generate broken result from an ABI-compliant input if it can be avoided.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D14991" rel="noreferrer" target="_blank">http://reviews.llvm.org/D14991</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>