Bug 11127 - regcomp.c can mishandle a heap allocation failure
Summary: regcomp.c can mishandle a heap allocation failure
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: regex (show other bugs)
Version: 2.12
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-04 09:20 UTC by jim@meyering.net
Modified: 2010-01-15 05:36 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
regcomp.c: do not ignore memory allocation failure (872 bytes, patch)
2010-01-04 09:22 UTC, jim@meyering.net
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.