This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff2476d
)
switch_category_locale_to_template: Fix use-after-free under -DLv
author
Dagfinn Ilmari Mannsåker
<ilmari@ilmari.org>
Mon, 16 Mar 2020 19:40:00 +0000
(19:40 +0000)
committer
Dagfinn Ilmari Mannsåker
<ilmari@ilmari.org>
Mon, 16 Mar 2020 19:44:58 +0000
(19:44 +0000)
Coverity CID 288709
locale.c
patch
|
blob
|
blame
|
history
diff --git
a/locale.c
b/locale.c
index
bffb812
..
578c54f
100644
(file)
--- a/
locale.c
+++ b/
locale.c
@@
-4548,7
+4548,7
@@
S_switch_category_locale_to_template(pTHX_ const int switch_category, const int
Safefree(restore_to_locale);
DEBUG_Lv(PerlIO_printf(Perl_debug_log, "%s locale unchanged as %s\n",
- category_name(switch_category),
restore_to
_locale));
+ category_name(switch_category),
template
_locale));
return NULL;
}