diff options
-rw-r--r-- | lib/Analysis/NOTES.TXT | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Analysis/NOTES.TXT b/lib/Analysis/NOTES.TXT new file mode 100644 index 0000000000..2c92bf033e --- /dev/null +++ b/lib/Analysis/NOTES.TXT @@ -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.
\ No newline at end of file |