This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_formline(): revert recent buffer growth changes
This commit reverts the following (except for the additions to
t/op/write.t):
3b1d752 pp_formline(): add empty body to empty while loop
f62fd06 pp_formline(): avoid buffer overrun
90c3aa0 pp_formline: simplify growing of PL_formtarget
90c3aa0 was intended to make the code for growing the buffer simpler and
more robust with less possibility of obscure edge cases, while the
follow-up commit fixed an issue introduced by that commit, and the next
was a tweak for a compiler warning. But
http://nntp.perl.org/group/perl.perl5.porters/243101
shows that there are still issues with the new code and I've decided to
abandon the effort and leave things how they were originally - i.e.
happily working, but probably with some still undiscovered edge cases.