diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-08-06 19:14:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-08-06 19:14:30 +0300 |
commit | b020790c30d06b6d20abd1e7b492588cc1f7ae91 (patch) | |
tree | 334268cd2536aefde414022f3a6aba1bf36776fa /src/fs | |
parent | 0cf92e82162051beffb11c230740f11bc02a104a (diff) | |
download | plus-b020790c30d06b6d20abd1e7b492588cc1f7ae91.tar.gz plus-b020790c30d06b6d20abd1e7b492588cc1f7ae91.tar.bz2 plus-b020790c30d06b6d20abd1e7b492588cc1f7ae91.tar.xz plus-b020790c30d06b6d20abd1e7b492588cc1f7ae91.zip |
Fix possible double free in zip reading code if zip file corrupted.
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/virtfs/zipreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/virtfs/zipreader.cpp b/src/fs/virtfs/zipreader.cpp index 4900b388c..e76b219b2 100644 --- a/src/fs/virtfs/zipreader.cpp +++ b/src/fs/virtfs/zipreader.cpp @@ -178,7 +178,7 @@ namespace ZipReader header->fileName.c_str()); #endif // DEBUG_ZIP dirs.push_back(header->fileName); - delete header; + delete2(header); } } else if (buf[0] == 0x50 && |