1 From 410f564d9a728b983cf11ba9b3eadfc7d59c187c Mon Sep 17 00:00:00 2001
2 From: David Tardon <dtardon@redhat.com>
3 Date: Thu, 17 Oct 2013 10:35:34 +0200
4 Subject: [PATCH] fdo#70480 do not crash reading malformed zip
6 Change-Id: Ia37e8be5172a49669cb9f7271c5401ca88f39072
8 src/lib/VSDZipStream.cpp | 2 ++
9 1 file changed, 2 insertions(+)
11 diff --git a/src/lib/VSDZipStream.cpp b/src/lib/VSDZipStream.cpp
12 index 3b3e08a..1c12d56 100644
13 --- a/src/lib/VSDZipStream.cpp
14 +++ b/src/lib/VSDZipStream.cpp
15 @@ -203,6 +203,8 @@ bool libvisio::VSDZipStreamImpl::isZipStream()
17 if (!readCentralDirectory(end))
21 CentralDirectoryEntry entry = m_cdir.begin()->second;
22 m_input->seek(entry.offset, WPX_SEEK_SET);
23 LocalFileHeader header;