Fixed missing input validation.

This commit is contained in:
Armin Novak 2018-10-16 17:10:03 +02:00
parent cab2e28576
commit 3629a84d3f

View File

@ -176,6 +176,9 @@ static BOOL gdi_Bitmap_Decompress(rdpContext* context, rdpBitmap* bitmap,
{
SrcFormat = gdi_get_pixel_format(bpp);
if (SrcSize < bitmap->length)
return FALSE;
if (!freerdp_image_copy(bitmap->data, bitmap->format, 0, 0, 0,
DstWidth, DstHeight, pSrcData, SrcFormat,
0, 0, 0, &gdi->palette, FREERDP_FLIP_VERTICAL))