This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23878] New: memcmp() declares args non-NULL, even though it accepts n=0


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]