From 50510538db49b58b3364a0938a82879bc08890a3 Mon Sep 17 00:00:00 2001 From: Nguyen Trung Khanh Date: Sat, 4 Jul 2020 20:39:16 +0700 Subject: [PATCH] [WIN32SS][GDI] Fix pool memory disclosure in NtGdiGetOutlineTextMetricsInternalW (#2964) --- win32ss/gdi/ntgdi/font.c | 1 + 1 file changed, 1 insertion(+) diff --git a/win32ss/gdi/ntgdi/font.c b/win32ss/gdi/ntgdi/font.c index 0c75a5a2dda..876fb02536c 100644 --- a/win32ss/gdi/ntgdi/font.c +++ b/win32ss/gdi/ntgdi/font.c @@ -927,6 +927,7 @@ NtGdiGetOutlineTextMetricsInternalW (HDC hDC, EngSetLastError(ERROR_NOT_ENOUGH_MEMORY); return 0; } + RtlZeroMemory(potm, Size); IntGetOutlineTextMetrics(FontGDI, Size, potm); _SEH2_TRY