mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fixed CVE-2018-8786
Thanks to Eyal Itkin from Check Point Software Technologies.
This commit is contained in:
@@ -208,11 +208,9 @@ BITMAP_UPDATE* update_read_bitmap_update(rdpUpdate* update, wStream* s)
|
||||
|
||||
if (bitmapUpdate->number > bitmapUpdate->count)
|
||||
{
|
||||
UINT16 count;
|
||||
BITMAP_DATA* newdata;
|
||||
count = bitmapUpdate->number * 2;
|
||||
newdata = (BITMAP_DATA*) realloc(bitmapUpdate->rectangles,
|
||||
sizeof(BITMAP_DATA) * count);
|
||||
UINT32 count = bitmapUpdate->number * 2;
|
||||
BITMAP_DATA* newdata = (BITMAP_DATA*) realloc(bitmapUpdate->rectangles,
|
||||
sizeof(BITMAP_DATA) * count);
|
||||
|
||||
if (!newdata)
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user