This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #101940]: BBC Tk
authorKarl Williamson <public@khwilliamson.com>
Sat, 29 Oct 2011 17:20:40 +0000 (11:20 -0600)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:25:51 +0000 (13:25 +0100)
commit1b34bc43d5e0367e6bc6e1e1a86618333a127404
treea3578106741715dd2dd5fab1adcaaa2b64ca689c
parent87a95bcc2d7801f71814a3a5bb160c0bd5b91285
PATCH: [perl #101940]: BBC Tk

This commit that turned up this bug turns out merely exposes an
underlying problem that could be generated via other means.

regcomp.c was looking at the SvUTF8 flag on the input pattern before
doing an SvPV on it.  Generally the flag is considered not reliable
unless checked immediately after a SvPV.

I haven't been able to come up with a simple test case that reproduces
the bug.  I suspect that XS code is required to trigger it.

[ this is a re-application by davem of commit
  11951bcbfcaf4c260b0da0421e72fc80b4654f17 ]
regcomp.c