From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17982 invoked by alias); 18 Apr 2014 14:37:49 -0000 Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org Received: (qmail 17938 invoked by uid 48); 18 Apr 2014 14:37:45 -0000 From: "nkennedy at grammatech dot com" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/16851] re_node_set_alloc should not return REG_ESPACE when size == 0 Date: Fri, 18 Apr 2014 14:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: regex X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: std-isoc X-Bugzilla-Severity: normal X-Bugzilla-Who: nkennedy at grammatech 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 2014-04/txt/msg00002.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16851 --- Comment #2 from Nathan Kennedy --- re_node_set_alloc's use of malloc is not portable in that it needlessly relies on current glibc malloc behavior not specified in any C standard for malloc; the return value of malloc(0). Which works when it's using glibc malloc as is, but makes the code nonportable, such as in the two downstream projects (gnulib and uClibc). -- You are receiving this mail because: You are on the CC list for the bug.