regcomp.c: fix fencepost error in vFAIL at end of pattern
authorYves Orton <demerphq@gmail.com>
Mon, 22 Sep 2014 23:36:34 +0000 (01:36 +0200)
committerYves Orton <demerphq@gmail.com>
Thu, 25 Sep 2014 07:38:03 +0000 (09:38 +0200)
commit8fb0127d49f1fbb7e8332bf50c25ab4c34631cfa
treeddde1ef6ac9c689c04ff7fd715b3d57f6ed52fd6
parent59685a4604d61709c23100c3754f52081ac007f1
regcomp.c: fix fencepost error in vFAIL at end of pattern

If RExC_parse was after RExC_end we passed a negative length
into the UTF8f macro/format, which then triggered asserts.

As part of this we add a new diagnostic to show when a
(?(condition)...) construct has gone unterminated, and tests for
the unterminated case, thus testing that vFAIL works properly
at the end of the string at the same time.
pod/perldiag.pod
regcomp.c
t/re/reg_mesg.t