Revert most of 3a8bbffbce: Avoid unnecessary malformed checking
authorKarl Williamson <public@khwilliamson.com>
Sun, 2 Mar 2014 01:47:10 +0000 (18:47 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sun, 2 Mar 2014 03:12:17 +0000 (20:12 -0700)
commit251b239f638a40fdf052716f0d8512fd4122ec8c
tree83dae08c28282e954d1662a37acc36bb02e4ad5c
parentdfcc68435715892f04adad257c3a85458300f1f2
Revert most of 3a8bbffbce: Avoid unnecessary malformed checking

My thinking was muddled when I made that commit, and this reverts the
essence of it.  The theory was that since we have already processed the
regex pattern, we don't need to check it for malformedness, hence we
don't need the "safe" form of certain macros that check for and avoid
running off the end of the buffer.  It is true that we don't have to
worry about malformedness indicating that the buffer is bigger than it
really is, but these macros can match up to three well-formed
characters, so we do have to make sure that all three are in the buffer,
and that the input isn't just the first two at the buffer's end.

This was caught by running valgrind.
regcharclass.h
regcomp.c
regen/regcharclass.pl
regexec.c