mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +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
|
// skip Directories
|
||||||
if (name[len - 1] == '/' && LittleLong(zip_fh->UncompressedSize) == 0)
|
if (name.IsEmpty() || (name.Back() == '/' && LittleLong(zip_fh->UncompressedSize) == 0))
|
||||||
{
|
{
|
||||||
skipped++;
|
skipped++;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue