This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/23878] New: memcmp() declares args non-NULL, even though it accepts n=0
- From: "sourceware at behdad dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 10 Nov 2018 21:06:04 +0000
- Subject: [Bug libc/23878] New: memcmp() declares args non-NULL, even though it accepts n=0
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=23878
Bug ID: 23878
Summary: memcmp() declares args non-NULL, even though it
accepts n=0
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: sourceware at behdad dot org
CC: drepper.fsp at gmail dot com
Target Milestone: ---
This is causing UBSan to flag an error in my code, which is (IMO legitimately)
passing NULL to memcmp() when length argument is zero.
--
You are receiving this mail because:
You are on the CC list for the bug.