diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-11-17 00:50:34 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-11-17 00:50:34 +0000 |
commit | 8fec972a61e2497ca8436722de6a799d1b58c4f8 (patch) | |
tree | f1e9503473f57f655642d2de68702ac3ac087e2d /lib/Checker/UnixAPIChecker.cpp | |
parent | 8e8c7e04298a2e2fba6d46a61352bdf6f0c340fe (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.cpp | 5 |
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" |