Date: Wed, 29 Jan 1997 00:26:56 -0700 (MST) From: Thomas S Traylor <tst@vulture.cs.mci.com> To: FreeBSD-gnats-submit@freebsd.org Subject: gnu/2610: strdup will cause you app to core if passed a NULL string Message-ID: <199701290726.AAA02051@vulture.cs.mci.com> Resent-Message-ID: <199701290740.XAA16335@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 2610 >Category: gnu >Synopsis: strdup will cause you app to core if passed a NULL string >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 28 23:40:01 PST 1997 >Last-Modified: >Originator: Thomas S Traylor >Organization: >Release: FreeBSD 2.2-ALPHA i386 >Environment: Normal user environment. >Description: The library function strdup does not handle a NULL string being passed to it. When you do the application cores. >How-To-Repeat: Pass strdup a NULL string. >Fix: Have strdup check for a NULL string and then return a NULL string. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701290726.AAA02051>