[codec,nsc] fix missing check
in nsc_rle_decode abort if there are more bytes to be read then there are left.
This commit is contained in:
parent
2500fb7bfb
commit
d58cbc96ac
@ -160,7 +160,7 @@ static BOOL nsc_rle_decode(const BYTE* in, size_t inSize, BYTE* out, UINT32 outS
|
||||
len |= ((UINT32)(*in++)) << 24U;
|
||||
}
|
||||
|
||||
if (outSize < len)
|
||||
if ((outSize < len) || (left < len))
|
||||
return FALSE;
|
||||
|
||||
outSize -= len;
|
||||
|
Loading…
Reference in New Issue
Block a user