mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 17:31:23 +08:00
[WIN32SS:NTGDI] FontFamilyFillInfo(): Check returned IntGetOutlineTextMetrics() size...
... before allocating pool memory, as it is done everywhere else in the code.
This commit is contained in:
@@ -3472,11 +3472,11 @@ FontFamilyFillInfo(PFONTFAMILYINFO Info, LPCWSTR FaceName,
|
||||
RtlZeroMemory(Info, sizeof(FONTFAMILYINFO));
|
||||
ASSERT_FREETYPE_LOCK_HELD();
|
||||
Size = IntGetOutlineTextMetrics(FontGDI, 0, NULL, TRUE);
|
||||
if (!Size)
|
||||
return;
|
||||
Otm = ExAllocatePoolWithTag(PagedPool, Size, GDITAG_TEXT);
|
||||
if (!Otm)
|
||||
{
|
||||
return;
|
||||
}
|
||||
ASSERT_FREETYPE_LOCK_HELD();
|
||||
Size = IntGetOutlineTextMetrics(FontGDI, Size, Otm, TRUE);
|
||||
if (!Size)
|
||||
|
||||
Reference in New Issue
Block a user