From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12220 invoked by alias); 16 May 2013 04:09:10 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 12162 invoked by uid 48); 16 May 2013 04:09:06 -0000 From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/15473] null pointer handling in strcmp Date: Thu, 16 May 2013 04:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status CC Resolution Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg00124.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15473 Carlos O'Donell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |carlos at redhat dot com Resolution| |WONTFIX --- Comment #2 from Carlos O'Donell 2013-05-16 04:09:05 UTC --- (In reply to comment #0) > 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. This hides real bugs. It also appears to incorrectly imply that NULL is equal to every string. If you really want this kind of change then you need to talk to the standards authors in the Austin Group (POSIX) and at your local ISO national body for SC22/WG14. Until then marking as resolved wontfix. -- 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.