https://git.reactos.org/?p=reactos.git;a=commitdiff;h=50510538db49b58b3364a…
commit 50510538db49b58b3364a0938a82879bc08890a3
Author:     Nguyen Trung Khanh <nguyentrungkhanh97(a)gmail.com>
AuthorDate: Sat Jul 4 20:39:16 2020 +0700
Commit:     GitHub <noreply(a)github.com>
CommitDate: Sat Jul 4 15:39:16 2020 +0200
    [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