Add comments.

llvm-svn: 119436
This commit is contained in:
Ted Kremenek 2010-11-17 00:50:34 +00:00
parent 345b48fcbd
commit 32195d9a58
1 changed files with 4 additions and 1 deletions

View 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"