From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27999 invoked by alias); 14 Sep 2013 16:50:05 -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 27765 invoked by uid 48); 14 Sep 2013 16:50:02 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/14780] [PATCH] handle malloc() and realloc() failures in regcomp() Date: Sat, 14 Sep 2013 16:50: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugdal at aerifal dot cx 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: 2013-09/txt/msg00002.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=14780 --- Comment #8 from Rich Felker --- If regcomp() returned failure, passing the regex to regfree() is invalid, so crashes there would not be a bug. In any case, the memory leaks are a bug and should be fixed. -- You are receiving this mail because: You are on the CC list for the bug.