aboutsummaryrefslogtreecommitdiff
path: root/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
commit8fec972a61e2497ca8436722de6a799d1b58c4f8 (patch)
treef1e9503473f57f655642d2de68702ac3ac087e2d /lib/Checker/UnixAPIChecker.cpp
parent8e8c7e04298a2e2fba6d46a61352bdf6f0c340fe (diff)
Add comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/UnixAPIChecker.cpp')
-rw-r--r--lib/Checker/UnixAPIChecker.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Checker/UnixAPIChecker.cpp b/lib/Checker/UnixAPIChecker.cpp
index 58fe93eee4..59a83f77ab 100644
--- a/lib/Checker/UnixAPIChecker.cpp
+++ b/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"