[Libreoffice-commits] libvisio.git: src/lib
David Tardon
dtardon at redhat.com
Thu Oct 17 01:35:57 PDT 2013
src/lib/VSDZipStream.cpp | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 410f564d9a728b983cf11ba9b3eadfc7d59c187c
Author: David Tardon <dtardon at redhat.com>
Date: Thu Oct 17 10:35:34 2013 +0200
fdo#70480 do not crash reading malformed zip
Change-Id: Ia37e8be5172a49669cb9f7271c5401ca88f39072
diff --git a/src/lib/VSDZipStream.cpp b/src/lib/VSDZipStream.cpp
index 3b3e08a..1c12d56 100644
--- a/src/lib/VSDZipStream.cpp
+++ b/src/lib/VSDZipStream.cpp
@@ -203,6 +203,8 @@ bool libvisio::VSDZipStreamImpl::isZipStream()
return false;
if (!readCentralDirectory(end))
return false;
+ if (m_cdir.empty())
+ return false;
CentralDirectoryEntry entry = m_cdir.begin()->second;
m_input->seek(entry.offset, WPX_SEEK_SET);
LocalFileHeader header;
More information about the Libreoffice-commits
mailing list