This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_match(): skip passing gpos arg to regexec()
authorDavid Mitchell <davem@iabyn.com>
Thu, 20 Jun 2013 13:54:44 +0000 (14:54 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 28 Jul 2013 09:33:36 +0000 (10:33 +0100)
commitd058ec57a827a21938e4726983d892ff9054dab3
treebb7e22dc40105eb813be92ecb6d711db2004ef20
parent9c13586e8887c0bcb29d89d3d73a7828043e999c
pp_match(): skip passing gpos arg to regexec()

In one specific case, pp_match() passes the value of pos() to regexec()
via the otherwise unused 'data' arg.

It turns out that pp_match() only passes this value when it exists and is
>= 0, while regexec() only uses it when there's no pos magic or pos() < 0.

So its never used as far as I can tell.

So, strip it for now.
pp_hot.c
regexec.c