Bug 11192 - regexec.c: avoid leaks on out-of-memory failure paths
Summary: regexec.c: avoid leaks on out-of-memory failure paths
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-19 16:15 UTC by jim@meyering.net
Modified: 2014-06-30 20:17 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
regexec.c: avoid leaks on out-of-memory failure paths (749 bytes, patch)
2010-01-19 16:17 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-19 16:15:58 UTC
patch attached
Comment 1 jim@meyering.net 2010-01-19 16:17:51 UTC
Created attachment 4539 [details]
regexec.c: avoid leaks on out-of-memory failure paths

2010-01-19  Paul Eggert  <eggert@cs.ucla.edu>

	[BZ #11192]
	regexec.c: avoid leaks on out-of-memory failure paths
	* posix/regexec.c (re_copy_regs): Don't leak when allocation
	of the start buffer succeeds but allocation of the "end" one fails.
	In two places.
Comment 2 Ulrich Drepper 2010-01-22 20:34:24 UTC
Checked into git.