aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2008-10-25 14:56:36 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2008-10-25 14:56:36 +0000
commita40a357b0817b43e0ff639ce03733431743c225d (patch)
tree4e6b75a31f1626c2d59b7aa2092d7d644f862df7
parent143bf82ac5afba0757e6817a2c2bb970c20b32d3 (diff)
Add a note file for SCA module. Is it the right place?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58140 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/NOTES.TXT14
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