]> granicus.if.org Git - clang/commitdiff
Add comments.
authorTed Kremenek <kremenek@apple.com>
Wed, 17 Nov 2010 00:50:34 +0000 (00:50 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 17 Nov 2010 00:50:34 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119436 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/UnixAPIChecker.cpp

index 58fe93eee4beb5e4113d4aeba42e34082ba058af..59a83f77ab9e252e9978339055db3c53a9392b6b 100644 (file)
@@ -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"