Reset freed HGDI_DC
CVE-2020-4031 thanks to @antonio-morales for finding this.
This commit is contained in:
parent
0a98c450c5
commit
f753c25ad3
@ -93,6 +93,7 @@ static BOOL gdi_Bitmap_New(rdpContext* context, rdpBitmap* bitmap)
|
||||
if (!gdi_bitmap->bitmap)
|
||||
{
|
||||
gdi_DeleteDC(gdi_bitmap->hdc);
|
||||
gdi_bitmap->hdc = NULL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user