From: Martin Storsjö martin@martin.st
This fixes stack overflows since edecac8afdd04701314381b6386e0f7ac862e066.
Signed-off-by: Martin Storsjö martin@martin.st --- dlls/win32u/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/win32u/font.c b/dlls/win32u/font.c index 9ead47e1983..6919edb2915 100644 --- a/dlls/win32u/font.c +++ b/dlls/win32u/font.c @@ -2919,7 +2919,8 @@ static void update_font_association_info(void)
static void set_multi_value_key( HKEY hkey, const WCHAR *name, const char *value, DWORD len ) { - WCHAR valueW[256]; + WCHAR valueW[512]; + assert(len <= sizeof(valueW)/sizeof(WCHAR)); ascii_to_unicode( valueW, value, len ); if (value) set_reg_value( hkey, name, REG_MULTI_SZ, valueW, len * sizeof(WCHAR) );