[NTGDI] Fix pool memory disclosure in NtGdiGetGlyphOutline (#3021)
[reactos.git] / win32ss / gdi / ntgdi / font.c
index 876fb02..1db1284 100644 (file)
@@ -743,7 +743,7 @@ NtGdiGetGlyphOutline(
 
   if (UnsafeBuf && cjBuf)
   {
-     pvBuf = ExAllocatePoolWithTag(PagedPool, cjBuf, GDITAG_TEXT);
+     pvBuf = ExAllocatePoolZero(PagedPool, cjBuf, GDITAG_TEXT);
      if (!pvBuf)
      {
         EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);