From db23272e58ae1851b2a03677bc700dee763a8f9d Mon Sep 17 00:00:00 2001 From: Anthony Tong Date: Tue, 8 Nov 2011 17:55:47 -0500 Subject: [PATCH] libfreerdp-codec: fix crash when decompressing large nsc bitmaps --- libfreerdp-codec/nsc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfreerdp-codec/nsc.c b/libfreerdp-codec/nsc.c index be4bb38b4..02fec690d 100644 --- a/libfreerdp-codec/nsc.c +++ b/libfreerdp-codec/nsc.c @@ -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;