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/15473] New: null pointer handling in strcmp


http://sourceware.org/bugzilla/show_bug.cgi?id=15473

             Bug #: 15473
           Summary: null pointer handling in strcmp
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: htpcucxo@yahoo.co.jp
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


When we use strcmp(p, NULL) with Unix machine, It returns zero.
  But on Linux(glibc) it results into crash.

  I know in this case, the behavior of strcmp is "undefined".
  So it's not bug, but since it's useful for the user to port to Linux 
  from other Unix, it would be nice to select the option etc.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]