This is the mail archive of the glibc-bugs-regex@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/17150] New: regex: don't deref NULL upon heap allocation failure


https://sourceware.org/bugzilla/show_bug.cgi?id=17150

            Bug ID: 17150
           Summary: regex: don't deref NULL upon heap allocation failure
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: regex
          Assignee: unassigned at sourceware dot org
          Reporter: jim at meyering dot net
                CC: drepper.fsp at gmail dot com

Here's the ChangeLog entry for the attached patch:

2014-07-12  Jim Meyering  <meyering@fb.com>

        regex: don't deref NULL upon heap allocation failure
        * posix/regcomp.c (parse_dup_op): Handle duplicate_tree
        failure in one more place.
        To trigger the segfault, configure grep -with-included-regex,
        build it, and run these commands:
        ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]