[NTGDI] Fix pool memory disclosure in NtGdiGetGlyphOutline (#3021)

This commit is contained in:
Nguyen Trung Khanh 2020-08-25 23:14:23 +07:00 committed by GitHub
parent aab8cd81ff
commit a081e12fbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);