mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
Fixed out of bound read in zip file loader
This commit is contained in:
parent
cb982ec313
commit
50d39771c0
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ bool FZipFile::Open(bool quiet)
|
|||
}
|
||||
|
||||
// skip Directories
|
||||
if (name[len - 1] == '/' && LittleLong(zip_fh->UncompressedSize) == 0)
|
||||
if (name.IsEmpty() || (name.Back() == '/' && LittleLong(zip_fh->UncompressedSize) == 0))
|
||||
{
|
||||
skipped++;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue