http://llvm.org/bugs/show_bug.cgi?id=15708
Bug ID: 15708
Summary: malloc(0) is not undefined behaviour
Product: clang
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
When encountering a possible malloc(0), the clang analyzer reports a "Undefined
allocation of 0 bytes (CERT MEM04-C; CWE-131)" bug. This text is wrong, since
malloc(0) is not *undefined*; rather, it is *implementation-defined*.
A global s/Undefined allocation/Implementation-defined allocation/ in the
clang-analyzer source code should fix this.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs