This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: make %n missing arg fatal
authorDavid Mitchell <davem@iabyn.com>
Wed, 24 May 2017 15:09:25 +0000 (16:09 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:03 +0000 (09:11 +0100)
commit0ea23158a16953a6bdda198e6f77df120fe866ef
tree91ed5545599546e157683736909dbb3ca81b2014
parenta60fe28cdc60d5637900d7f01c3f37a844261e65
Perl_sv_vcatpvfn_flags: make %n missing arg fatal

Normally sprintf et al just warn if there aren't enough args; but since %n
wants to write the current string length to the next arg, make it fatal.

Formerly it would croak anyway, but with a spurious "Modification of a
read-only value" error as it as it tried to set &PL_sv_no
pod/perldiag.pod
sv.c
t/op/sprintf2.t