]> granicus.if.org Git - clang/commitdiff
Add a note file for SCA module. Is it the right place?
authorZhongxing Xu <xuzhongxing@gmail.com>
Sat, 25 Oct 2008 14:56:36 +0000 (14:56 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sat, 25 Oct 2008 14:56:36 +0000 (14:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58140 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/NOTES.TXT [new file with mode: 0644]

diff --git a/lib/Analysis/NOTES.TXT b/lib/Analysis/NOTES.TXT
new file mode 100644 (file)
index 0000000..2c92bf0
--- /dev/null
@@ -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