Bug 11127

Summary: regcomp.c can mishandle a heap allocation failure
Product: glibc Reporter: jim <jim>
Component: regexAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs-regex, glibc-bugs
Priority: P2    
Version: 2.12   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: regcomp.c: do not ignore memory allocation failure

Description jim@meyering.net 2010-01-04 09:20:35 UTC
This patch was written by Paul Eggert back in 2005 [BZ #1285], but it was part
of a much larger patch that was ultimately rejected.

Patch attached.
Comment 1 jim@meyering.net 2010-01-04 09:22:06 UTC
Created attachment 4489 [details]
regcomp.c: do not ignore memory allocation failure
Comment 2 Ulrich Drepper 2010-01-15 05:36:00 UTC
I've applied the patch.