From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6564 invoked by alias); 19 Apr 2013 07:53:38 -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 6530 invoked by uid 48); 19 Apr 2013 07:53:35 -0000 From: "mtk.manpages at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/15380] New: initstate() fails to retun NULL if size < 8 Date: Fri, 19 Apr 2013 07:53: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-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mtk.manpages at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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-04/txt/msg00112.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15380 Bug #: 15380 Summary: initstate() fails to retun NULL if size < 8 Product: glibc Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: unassigned@sourceware.org ReportedBy: mtk.manpages@gmail.com CC: drepper.fsp@gmail.com Classification: Unclassified POSIX.1-2001 says: RETURN VALUE If initstate() is called with size less than 8, it shall return NULL. glibc sets errno to EINVAL for this case, but does not return NULL, thus violating the standard. -- 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.