From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25820 invoked by alias); 19 Aug 2013 06:51:05 -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 25796 invoked by uid 48); 19 Aug 2013 06:51:03 -0000 From: "arno at cs dot vu.nl" To: glibc-bugs@sourceware.org Subject: [Bug libc/15852] New: strdup(NULL) causes SEGV Date: Mon, 19 Aug 2013 06:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arno at cs dot vu.nl X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00086.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15852 Bug ID: 15852 Summary: strdup(NULL) causes SEGV Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: arno at cs dot vu.nl CC: drepper.fsp at gmail dot com There is no checking of the input value, 2.18 just does: size_t len = strlen (s) + 1; as its first line. Is this correct / by design? Thanks, Arno -- You are receiving this mail because: You are on the CC list for the bug.