Hi everybody,<div>Clang Static Analyzer crashes when the argument number of function's callee site is greater than function decl.</div><div>The following is a simple test case:</div><div><br></div><div>//Run %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store=region -analyzer-inline-call</div>
<div><div>#include <stdlib.h></div><div>void f1() {</div><div>}</div><div><br></div><div>void f() {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>int *p = malloc(32);</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>f1(p);</div>
<div>}</div><div><br></div><div>Attachment is the patch.</div><br></div><div><br>-- <br> Zhenbo Xu<br><br>
</div>