This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Fix \N{} multi-char fold buffer boundary bug
authorKarl Williamson <public@khwilliamson.com>
Wed, 1 Aug 2012 21:12:23 +0000 (15:12 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 2 Aug 2012 15:24:53 +0000 (09:24 -0600)
commitb9c48b5b74957012d9ed4b6e6cc2e067f5af2f97
treebf292382966c434a5e0564569d0e5860c2d40924
parentb9e8c997b9a1c15e919ad20df9ba2f1501c64d76
regcomp.c: Fix \N{} multi-char fold buffer boundary bug

An earlier commit in this topic branch fixed the bug (for non-\N{})
cases where a multi-character fold could try to span two EXACTFish
nodes, where they are split because the first one would otherwise
contain too long a string.

This commit extends that fix to include characters entered via \N{...}.
It does this by causing \N handling to be split, so that if the \N
resolves to a single code point, it goes through the normal processing,
so that it no longer bypasses the code that was added in the earlier
commit.
regcomp.c
t/re/pat_advanced.t
t/re/re_tests