[cfe-commits] r119436 - /cfe/trunk/lib/Checker/UnixAPIChecker.cpp
Ted Kremenek
kremenek at apple.com
Tue Nov 16 16:50:34 PST 2010
Author: kremenek
Date: Tue Nov 16 18:50:34 2010
New Revision: 119436
URL: http://llvm.org/viewvc/llvm-project?rev=119436&view=rev
Log:
Add comments.
Modified:
cfe/trunk/lib/Checker/UnixAPIChecker.cpp
Modified: cfe/trunk/lib/Checker/UnixAPIChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/UnixAPIChecker.cpp?rev=119436&r1=119435&r2=119436&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/UnixAPIChecker.cpp (original)
+++ cfe/trunk/lib/Checker/UnixAPIChecker.cpp Tue Nov 16 18:50:34 2010
@@ -203,7 +203,10 @@
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"
More information about the cfe-commits
mailing list