bump product version to 4.1.6.2
[LibreOffice.git] / libvisio / 0001-fdo-70480-do-not-crash-reading-malformed-zip.patch
blob6c7135f36ea465b09224d2fe997cb02444881086
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
7 ---
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()
16 return false;
17 if (!readCentralDirectory(end))
18 return false;
19 + if (m_cdir.empty())
20 + return false;
21 CentralDirectoryEntry entry = m_cdir.begin()->second;
22 m_input->seek(entry.offset, WPX_SEEK_SET);
23 LocalFileHeader header;
24 --
25 1.8.3.1