summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/UnixAPIChecker.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-11-17 00:50:34 +0000
committerTed Kremenek <kremenek@apple.com>2010-11-17 00:50:34 +0000
commit32195d9a584efe11452ac63daad51843bd8a8e3d (patch)
treec1f698c2bd99dddef0e476f1b03ffd264ff6ea05 /clang/lib/Checker/UnixAPIChecker.cpp
parent345b48fcbd1ef62d6a67adb6a9354cd53ae6f88b (diff)
downloadbcm5719-llvm-32195d9a584efe11452ac63daad51843bd8a8e3d.tar.gz
bcm5719-llvm-32195d9a584efe11452ac63daad51843bd8a8e3d.zip
Add comments.
llvm-svn: 119436
Diffstat (limited to 'clang/lib/Checker/UnixAPIChecker.cpp')
-rw-r--r--clang/lib/Checker/UnixAPIChecker.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Checker/UnixAPIChecker.cpp b/clang/lib/Checker/UnixAPIChecker.cpp
index 58fe93eee4b..59a83f77ab9 100644
--- a/clang/lib/Checker/UnixAPIChecker.cpp
+++ b/clang/lib/Checker/UnixAPIChecker.cpp
@@ -203,7 +203,10 @@ static void CheckMallocZero(CheckerContext &C, UnixAPIChecker &UC,
if (!N)
return;
- LazyInitialize(BT, "bad allocation of 0 bytes");
+ // FIXME: Add reference to CERT advisory, and/or C99 standard in bug
+ // output.
+
+ LazyInitialize(BT, "Undefined allocation of 0 bytes");
EnhancedBugReport *report =
new EnhancedBugReport(*BT, "Call to 'malloc' has an allocation size"
OpenPOWER on IntegriCloud