From b020790c30d06b6d20abd1e7b492588cc1f7ae91 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 6 Aug 2018 19:14:30 +0300 Subject: Fix possible double free in zip reading code if zip file corrupted. --- src/fs/virtfs/zipreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fs/virtfs') 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 && -- cgit v1.2.3-70-g09d2