regen/regcharclass.pl: Forbid non-safe macros for multi-char matches
authorKarl Williamson <public@khwilliamson.com>
Sun, 2 Mar 2014 02:35:00 +0000 (19:35 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 2 Mar 2014 03:12:17 +0000 (20:12 -0700)
commit6b94381de733fd32f3a547af933571b887a629af
treec1f24c100684f712cbc0a57fcee21df92131aa97
parent5c025f035e2b0abffadd613f6414974abb1bfb2a
regen/regcharclass.pl: Forbid non-safe macros for multi-char matches

For matches that can match more than a single code point, one should
always use a macro that makes sure that one doesn't read off the end of
the buffer.  This is because the buffer might end with the first N
characters of a sequence with at least N+1 in it, and we don't want to
read that N+1 position in the buffer.

If this had been in place, buggy commit 3a8bbffbce would not have
happened.
regen/regcharclass.pl