mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[WIN32K] Fix 'use after free' in NtGdiStretchDIBitsInternal (#4122)
CORE-17861
This commit is contained in:
parent
f766ca5e42
commit
b538b9abb8
1 changed files with 2 additions and 1 deletions
|
@ -1489,7 +1489,6 @@ NtGdiStretchDIBitsInternal(
|
|||
if (pdc) DC_UnlockDc(pdc);
|
||||
}
|
||||
|
||||
if (pbmiSafe) ExFreePoolWithTag(pbmiSafe, 'imBG');
|
||||
if (pvBits) ExFreePoolWithTag(pvBits, TAG_DIB);
|
||||
|
||||
/* This is not what MSDN says is returned from this function, but it
|
||||
|
@ -1504,6 +1503,8 @@ NtGdiStretchDIBitsInternal(
|
|||
LinesCopied = pbmiSafe->bmiHeader.biHeight;
|
||||
}
|
||||
|
||||
ExFreePoolWithTag(pbmiSafe, 'imBG');
|
||||
|
||||
return LinesCopied;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue