Hi everybody,
Clang Static Analyzer crashes when the argument number of function’s callee site is greater than function decl.
The following is a simple test case:
//Run %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store=region -analyzer-inline-call
#include <stdlib.h>
void f1() {
}
void f() {
int *p = malloc(32);
f1(p);
}
Attachment is the patch.
RegionStore.patch (2.16 KB)