]> git.eshelyaron.com Git - emacs.git/commit
Fix regex abort when it tries to reenter itself
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Nov 2015 09:14:39 +0000 (01:14 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 15 Nov 2015 09:15:42 +0000 (01:15 -0800)
commit8121757b3ae6cbb7a7bac12b11ac32f243657aee
treeb9a84f48f4a0eeeb258e8a8d987c138373d701b7
parent3a1a220b02fa5627718380b2bd0a04800db098fb
Fix regex abort when it tries to reenter itself

Problem reported by Ken Raeburn.
Solution suggested by Stefan Monnier (Bug#21688).
* src/regex.c (re_match_2_internal):
Use new _FAST functions to avoid regex code reentering itself.
* src/syntax.c (update_syntax_table_forward): New arg PROPERTIZE.
All callers changed.
* src/syntax.h (UPDATE_SYNTAX_TABLE_FORWARD_FAST)
(UPDATE_SYNTAX_TABLE_FAST): New inline functions.
src/regex.c
src/syntax.c
src/syntax.h