mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix small oversight
Should be '+1' as 'position' could be 0.
This commit is contained in:
parent
e76f5b98c8
commit
a5489f16b6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user