From 195839dd531171a008b6902294244fbaa8dcca8e Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sat, 25 Oct 2008 14:56:36 +0000 Subject: [PATCH] Add a note file for SCA module. Is it the right place? llvm-svn: 58140 --- clang/lib/Analysis/NOTES.TXT | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 clang/lib/Analysis/NOTES.TXT diff --git a/clang/lib/Analysis/NOTES.TXT b/clang/lib/Analysis/NOTES.TXT new file mode 100644 index 000000000000..2c92bf033ec9 --- /dev/null +++ b/clang/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