From: Ted Kremenek Date: Wed, 17 Nov 2010 00:50:34 +0000 (+0000) Subject: Add comments. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fec972a61e2497ca8436722de6a799d1b58c4f8;p=clang Add comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119436 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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"