summaryrefslogtreecommitdiff
path: root/cpan/Module-Build/lib/Module/Build/ModuleInfo.pm
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-01-24 17:38:37 +0000
committerDavid Mitchell <davem@iabyn.com>2011-01-24 18:06:32 +0000
commitf6d9469c36e1347cc755fd32ccc2107cc9521566 (patch)
tree9eda032e71817e7c98ebed55f73551d8ff55a958 /cpan/Module-Build/lib/Module/Build/ModuleInfo.pm
parent010f0c4bf014b5c77fb8fb5e1878d71cad7ddf0b (diff)
downloadperl-f6d9469c36e1347cc755fd32ccc2107cc9521566.tar.gz
fix harmless invalid read in Perl_re_compile()
[perl #2460] described a case where electric fence reported an invalid read. This could be reproduced under valgrind with blead and -e'/x/', but only on a non-debugging build. This was because it was checking for certain pairs of nodes (e.g. BOL + END) and wasn't allowing for EXACT nodes, which have the string at the next node position when using a naive NEXTOPER(first). In the non-debugging build, the nodes aren't initialised to zero, and a 1-char EXACT node isn't long enough to spill into the type field of the "next node". Fix this by only using NEXTOPER(first) when we know the first node is kosher.
Diffstat (limited to 'cpan/Module-Build/lib/Module/Build/ModuleInfo.pm')
0 files changed, 0 insertions, 0 deletions