Fix small oversight

Should be '+1' as 'position' could be 0.
This commit is contained in:
Kawe Mazidjatari 2023-04-05 22:58:26 +02:00
parent e76f5b98c8
commit a5489f16b6

View File

@ -330,7 +330,7 @@ unsigned int CLZSS::SafeUncompress( unsigned char *pInput, unsigned char *pOutpu
break;
}
if ( position > totalBytes || // out of bounds
if ( position + 1 > totalBytes || // out of bounds
totalBytes + count > unBufSize )
{
return 0;