This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15473] New: null pointer handling in strcmp
- From: "htpcucxo at yahoo dot co.jp" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 16 May 2013 03:53:39 +0000
- Subject: [Bug libc/15473] New: null pointer handling in strcmp
- Auto-submitted: auto-generated
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.