summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-12-22 16:39:09 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-12-22 16:40:08 -0800
commitc2ec762dbc132d3c4a727c8e2ecab2a7286729d6 (patch)
tree419cc9081334e6a7e94471f48080e9f8068dfc37 /bootstrap
parentabb7f4f2325f26f930ff59b702fe42568a8e81e7 (diff)
downloadgrep-c2ec762dbc132d3c4a727c8e2ecab2a7286729d6.tar.gz
grep: fix some bugs in pattern-grouping speedup
This fixes some bugs in the previous commit, and should finish the fix for Bug#33249. * NEWS: Mention fix for Bug#33249. * src/dfasearch.c (possible_backrefs_in_pattern, regex_compile) (GEAcompile): In new code, prefer ptrdiff_t to size_t when either will do, since ptrdiff_t has better error checking. At some point we should adjust the old code too. (possible_backrefs_in_pattern): Rename from find_backref_in_pattern. New arg BS_SAFE. All uses changed. Fix false negative if a multibyte character ends in a single '\\' byte, followed by the two bytes '\\', '1'. (regex_compile): Simplify. (GEAcompile): Avoid quadratic behavior when reallocating growing buffers. Fix a couple of bugs in copying pattern data involving backreferences. Fix another bug in copying pattern metadata involving backreferences, by removing the need to copy it.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions