[LLVMbugs] [Bug 18247] New: 3.4: memchr(NULL, '=', 0) is defined as =
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 13 22:03:42 PST 2013
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: kremenek at apple.com
Reporter: shawnlandden at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131214/0d397baf/attachment.html>
More information about the llvm-bugs
mailing list