projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6780420
)
Reset freed HGDI_DC
author
akallabeth
<akallabeth@posteo.net>
Tue, 2 Jun 2020 07:28:47 +0000
(09:28 +0200)
committer
Armin Novak
<armin.novak@thincast.com>
Mon, 22 Jun 2020 10:13:20 +0000
(12:13 +0200)
CVE-2020-4031 thanks to @antonio-morales for finding this.
(cherry picked from commit
f753c25ad3d5dae7890fe73cfb3c091c015d97ed
)
libfreerdp/gdi/graphics.c
patch
|
blob
|
history
diff --git
a/libfreerdp/gdi/graphics.c
b/libfreerdp/gdi/graphics.c
index
f63df39
..
60d82ae
100644
(file)
--- a/
libfreerdp/gdi/graphics.c
+++ b/
libfreerdp/gdi/graphics.c
@@
-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;
}