]> Savannah Git Hosting - gnulib.git/commit
dfa: do not match invalid UTF-8
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Dec 2019 05:41:27 +0000 (21:41 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 18 Dec 2019 05:47:07 +0000 (21:47 -0800)
commit1219c343014ede881069bab554408b40e5455d9c
treec9c9d3d04ded3f017da8a40a2b398e8eba150b9f
parent8df5ec4bd222563052d98bed99aa1b439abaeca8
dfa: do not match invalid UTF-8

* lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
from 5 to 9 tokens; this is needed due to the changes to
add_utf8_anychar.
(charclass_index): 2nd arg is now pointer-to-const.
(add_utf8_anychar): Match only valid UTF-8 byte sequences
instead of allowing overlong encodings or surrogate halves.
ChangeLog
lib/dfa.c