This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
ensure locale_name_on_entry isn't clobbered
authorTony Cook <tony@develop-help.com>
Mon, 16 Sep 2019 06:38:26 +0000 (16:38 +1000)
committerKarl Williamson <khw@cpan.org>
Thu, 24 Oct 2019 19:10:34 +0000 (12:10 -0700)
commitbcb1da5c29c3a2534a0e43874974b83c9c8b174c
treee23fad9b95f04a7d830fd068556267b55a21f862
parent8b64b5d1624be026f0eebe3bf2ddbd0c086a4d49
ensure locale_name_on_entry isn't clobbered

If the return value of setlocale() is static storage, the call to
setlocale(LC_NUMERIC, "C"); could overwrite it.

If the return value of setlocale() is malloced, the call to
setlocale(LC_NUMERIC, "C"); could free it.

Either way, we need to copy it.  Fixes gh #17054 rt134212
t/porting/customized.dat
vutil.c