This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix for perl #112316: Wrong behavior regarding labels with same prefix
authorBrian Fraser <fraserbn@gmail.com>
Fri, 6 Apr 2012 20:47:14 +0000 (17:47 -0300)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 7 Apr 2012 05:00:14 +0000 (22:00 -0700)
commiteade71555e37e053d1aa5b29a45a0f06b3a3458f
tree710a44f9e5ace1ca37dd96f969395b33c1473f0c
parentfae6f8faebd031ebdb5f318e8a671e018b9a63c1
Fix for perl #112316: Wrong behavior regarding labels with same prefix

The code that compared non UTF-8 labels neglected to check that
the label's length was equal before comparing them with a memEQ,
which lead to code that used labels with the same prefixes to fail:

./perl -Ilib -E 'CATCH: { CATCHLOOP: { last CATCH;  } die  }'
pp_ctl.c
t/op/goto.t
t/op/loopctl.t