summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorDavid Leadbeater <dgl@dgl.cx>2011-05-14 13:57:21 +0100
committerFather Chrysostomos <sprout@cpan.org>2011-05-18 22:20:43 -0700
commit37c6a70c7d35357916da21616c68e56c878a5bd2 (patch)
treefe7ab7c9ee4892844640e97226a3f17709389ad0 /op.c
parentea74ff717a4ba16fc7b858acd65cc2c893970c30 (diff)
downloadperl-37c6a70c7d35357916da21616c68e56c878a5bd2.tar.gz
scan_heredoc could reallocate PL_parser->linestr's PV
Since f0e67a1 it was possible the freed buffer may be read from when parsing a heredoc. This adds a call to lex_grow_linestr to grow the buffer and ensure the pointers in PL_parser are updated. The bug is pretty hard to reproduce, hence no test. I'm able to reproduce it with the following: perl -Meverywhere=re,debug -MParams::Util -e1
Diffstat (limited to 'op.c')
0 files changed, 0 insertions, 0 deletions