fix read out of bounds
This commit is contained in:
@@ -114,7 +114,7 @@ bool RageFileDriverZip::SeekToEndCentralRecord()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int iPos = iGot; iPos >= 0; --iPos )
|
for( int iPos = iGot - 4; iPos >= 0; --iPos )
|
||||||
{
|
{
|
||||||
if( memcmp(buf + iPos, "\x50\x4B\x05\x06", 4) )
|
if( memcmp(buf + iPos, "\x50\x4B\x05\x06", 4) )
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user