summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/UnixAPIChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Checker/UnixAPIChecker.cpp')
-rw-r--r--clang/lib/Checker/UnixAPIChecker.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Checker/UnixAPIChecker.cpp b/clang/lib/Checker/UnixAPIChecker.cpp
index 58fe93eee4b..59a83f77ab9 100644
--- a/clang/lib/Checker/UnixAPIChecker.cpp
+++ b/clang/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"
OpenPOWER on IntegriCloud