On Sat, Jul 12, 2014 at 4:50 PM, Jim Meyering wrote:
> I was surprised to be able to provoke a segfault in grep.
> Even more surprised to see that the flaw was in regcomp.c.
> Here's the patch I'll push to gnulib.
> I expect the same will go to glibc soon.
FYI, I've filed the glibc bug here:
http
Date: Sat, 12 Jul 2014 16:33:49 -0700
Subject: [PATCH] regex: don't deref NULL upon heap allocation failure
* lib/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