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
authorDavid Mitchell <davem@iabyn.com>
Sun, 19 Feb 2017 12:21:47 +0000 (12:21 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 19 Feb 2017 12:34:07 +0000 (12:34 +0000)
commit732f08da7ecf98c22343bcb64387c904b659441b
treedcf2e0ed9a365f26c04329ff0675ebc01b28c593
parente5c165a0b7551ffb94661aa7f18aabadba257782
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.
pp_ctl.c