Bug 11183 - regex: avoid internal re_realloc overflow
Summary: regex: avoid internal re_realloc overflow
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 09:26 UTC by jim@meyering.net
Modified: 2010-01-22 17:33 UTC (History)
2 users (show)

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


Attachments
regex_internal.c: guard against re_realloc overflow (590 bytes, patch)
2010-01-19 09:28 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 09:26:39 UTC
Here's a patch:

    regex_internal.c: guard against re_realloc overflow
    
    * posix/regex_internal.c (re_string_realloc_buffers):
    Detect and handle internal overflow.  Patch by Paul Eggert.
Comment 1 jim@meyering.net 2010-01-19 09:28:09 UTC
Created attachment 4529 [details]
regex_internal.c: guard against re_realloc overflow
Comment 2 Ulrich Drepper 2010-01-22 17:33:32 UTC
Checked in.