From owner-freebsd-bugs@FreeBSD.ORG Tue May 27 02:36:33 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E07937B401 for ; Tue, 27 May 2003 02:36:33 -0700 (PDT) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 146A243FB1 for ; Tue, 27 May 2003 02:36:32 -0700 (PDT) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 591F7530E; Tue, 27 May 2003 11:36:30 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Seva Gluschenko References: <200305262053.h4QKr3GB026031@freefall.freebsd.org> <20030527121942.W33922@road.demos.su> From: Dag-Erling Smorgrav Date: Tue, 27 May 2003 11:36:29 +0200 In-Reply-To: <20030527121942.W33922@road.demos.su> (Seva Gluschenko's message of "Tue, 27 May 2003 12:20:37 +0400 (MSD)") Message-ID: User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-bugs@FreeBSD.org Subject: Re: bin/52691: str[n][case]cmp may cause segmentation violation with NULL pointers passed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 09:36:33 -0000 Seva Gluschenko writes: > Message of Dag-Erling Smorgrav at May 26 13:53 ... > > The bug is in the application that passes NULL to strcmp. > Well, sir, can you please quote me some ISO C89 or another standard > which allows str*cmp not to care about NULL pointers? The behaviour of the str*() functions is only defined when the pointers passed to them point to strings. NULL is not a string pointer. If you disagree, the correct venue to discuss this is comp.lang.c.std, not the FreeBSD PR database. DES -- Dag-Erling Smorgrav - des@ofug.org