This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Fix up RE_TRACK_PATTERN_OFFSETS
authorKarl Williamson <khw@cpan.org>
Wed, 14 Nov 2018 16:09:38 +0000 (09:09 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 16 Nov 2018 17:29:26 +0000 (10:29 -0700)
commit950da19151ab0eeaf8415e508fb51c36f2b5d70c
treea5b09b1c01219063aab4d6a5b7784d959d9071eb
parent48975adaf1ddd57fb4b698978ba40f3ef0271f74
regcomp.c: Fix up RE_TRACK_PATTERN_OFFSETS

These need to be changed around as a result of removing the sizing pass
from pattern compilation.

The first element in the array is the number of offsets.  This had
become wrong.  And it is used instead of the program length when it is
available.
ext/re/t/regop.t
regcomp.c