forked from OSchip/llvm-project
Add a note file for SCA module. Is it the right place?
llvm-svn: 58140
This commit is contained in:
parent
24eb3de4c2
commit
195839dd53
|
@ -0,0 +1,14 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
// Random notes for the static analysis module.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Currently the analyzer with basic store will report false alarm for such code:
|
||||
|
||||
p[0] = "/bin/sh";
|
||||
p[1] = NULL;
|
||||
|
||||
execv(p[0], argv);
|
||||
|
||||
This is because BasicStore "collapses" all elements of an array into their base
|
||||
region. BasicStore should return UnknownVal() when getLValueElement. But that
|
||||
way will break current test in null-deref-ps.c.
|
Loading…
Reference in New Issue