http://llvm.org/bugs/show_bug.cgi?id=18247
Bug ID: 18247
Summary: 3.4: memchr(NULL, '=', 0) is defined as =
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
the static analyzer complains as such:
memchr_null.c:3:2: warning: Null pointer passed as an argument to a 'nonnull'
parameter
memchr(NULL, '=', 0);
^~~~~~~~~~~~~~~~~~~~
it should not complain when size == 0
--
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