diff options
author | Jim Meyering <meyering@fb.com> | 2014-07-12 16:33:49 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-07-12 16:44:12 -0700 |
commit | 1051177e3c202667889628fd73aee7c3b470f99d (patch) | |
tree | 2fbc0df7f06678e9559f9490358296fcd568bd0d /build-aux/announce-gen | |
parent | 4044ca9a9c317335c0f730e9417e57343029d3c4 (diff) | |
download | gnulib-1051177e3c202667889628fd73aee7c3b470f99d.tar.gz |
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 -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
I discovered this while replying to a private report from
Jens Schleusener about excessive memory consumption by grep
when using a regular expression like the one above.
Diffstat (limited to 'build-aux/announce-gen')
0 files changed, 0 insertions, 0 deletions