From 3f9e3b0a62f376b35d7aa952a80d28589ff5e42c Mon Sep 17 00:00:00 2001 From: waddlesplash Date: Sat, 19 May 2018 20:44:51 -0400 Subject: [PATCH] ICU locale backend: Increase size of fLocaleDescription from 512 to 1024 bytes. GCC7 gave a Werror that we were snprintf'ing potentially ~860 bytes into a 512-byte buffer. --- headers/private/libroot/locale/ICULocaleBackend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/private/libroot/locale/ICULocaleBackend.h b/headers/private/libroot/locale/ICULocaleBackend.h index 4b9f22dd41..72e3ef96b6 100644 --- a/headers/private/libroot/locale/ICULocaleBackend.h +++ b/headers/private/libroot/locale/ICULocaleBackend.h @@ -81,7 +81,7 @@ private: static void _DestroyThreadLocalStorageValue(void* value); // buffer for locale names (up to one per category) - char fLocaleDescription[512]; + char fLocaleDescription[1024]; // data containers struct lconv fLocaleConv;