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] regex: don't deref NULL upon heap allocation failure


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 <meyering@fb.com>
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.


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