summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-06 19:14:30 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-06 19:14:30 +0300
commitb020790c30d06b6d20abd1e7b492588cc1f7ae91 (patch)
tree334268cd2536aefde414022f3a6aba1bf36776fa /src/fs
parent0cf92e82162051beffb11c230740f11bc02a104a (diff)
downloadmv-b020790c30d06b6d20abd1e7b492588cc1f7ae91.tar.gz
mv-b020790c30d06b6d20abd1e7b492588cc1f7ae91.tar.bz2
mv-b020790c30d06b6d20abd1e7b492588cc1f7ae91.tar.xz
mv-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.cpp2
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 &&