Skip to content
  • Paul Eggert's avatar
    dfa: do not match invalid UTF-8 · 1219c343
    Paul Eggert authored
    * 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.
    1219c343