Skip to content

Commit

Permalink
libfreerdp-codec: fix crash when decompressing large nsc bitmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Tong committed Nov 8, 2011
1 parent b1a071d commit db23272
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libfreerdp-codec/nsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db23272

Please sign in to comment.