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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

tromey at sourceware dot org
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  <[hidden email]>

        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.
Reply | Threaded
Open this post in threaded view
|

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

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

--- Comment #1 from jim at meyering dot net <jim at meyering dot net> ---
Created attachment 7709
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7709&action=edit
avoid NULL deref in regcomp.c's parse_dup_op

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

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

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=17150

Allan McRae <allan at archlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allan at archlinux dot org

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

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

tromey at sourceware dot org
In reply to this post by tromey at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=17150

Allan McRae <allan at archlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Allan McRae <allan at archlinux dot org> ---
commit 7ee03f00188723a4de2b85021e511ced6d7fc4be
Author: Jim Meyering <[hidden email]>
Date:   Sat Jul 12 17:07:21 2014 -0700

    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.