libfreerdp-codec: fix crash when decompressing large nsc bitmaps

This commit is contained in:
Anthony Tong 2011-11-08 17:55:47 -05:00
parent b1a071d551
commit db23272e58

View File

@ -264,7 +264,8 @@ void nsc_rle_decode(STREAM* in, STREAM* out, uint32 origsz)
void nsc_rle_decompress_data(NSC_CONTEXT* context)
{
STREAM* rles;
uint16 i, origsize;
uint16 i;
uint32 origsize;
rles = stream_new(0);
rles->p = rles->data = context->nsc_stream->pdata->p;
rles->size = context->nsc_stream->pdata->size;