fix read out of bounds

This commit is contained in:
Glenn Maynard
2007-07-14 18:19:58 +00:00
parent 4bb9a17364
commit 8ea123a15e
+1 -1
View File
@@ -114,7 +114,7 @@ bool RageFileDriverZip::SeekToEndCentralRecord()
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) )
continue;