[libcxx] r322295 - Fix some too-big local arrays. Thanks to dcdillon for the patch. Reviewed as D28217
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 11 09:16:52 PST 2018
Author: marshall
Date: Thu Jan 11 09:16:52 2018
New Revision: 322295
URL: http://llvm.org/viewvc/llvm-project?rev=322295&view=rev
Log:
Fix some too-big local arrays. Thanks to dcdillon for the patch. Reviewed as D28217
Modified:
libcxx/trunk/src/locale.cpp
Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=322295&r1=322294&r2=322295&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Thu Jan 11 09:16:52 2018
@@ -4659,7 +4659,7 @@ static
string*
init_am_pm()
{
- static string am_pm[24];
+ static string am_pm[2];
am_pm[0] = "AM";
am_pm[1] = "PM";
return am_pm;
@@ -4669,7 +4669,7 @@ static
wstring*
init_wam_pm()
{
- static wstring am_pm[24];
+ static wstring am_pm[2];
am_pm[0] = L"AM";
am_pm[1] = L"PM";
return am_pm;
More information about the cfe-commits
mailing list