summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-30 12:35:19 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-05-30 12:35:39 +0200
commit482d1ae3d0fa378d11a28aa87c4d81c1ddf7b36c (patch)
tree59a42abfd05cb16334a3049361e6edd9387c774d /package
parent1727b268645ae4f7328ed00135abe1e316311ba8 (diff)
Revert "Accept even more corrupted zip documents as long as we can read them"
Diffstat (limited to 'package')
-rw-r--r--package/source/zipapi/ZipFile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index f9da68b88fe5..9a894f496e77 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -691,6 +691,7 @@ sal_Bool ZipFile::readLOC( ZipEntry &rEntry )
// with timestamp difference in the central directory entry and local
// file header.
bBroken = rEntry.nVersion != nVersion
+ || (rEntry.nFlag & ~6L) != (nFlag & ~6L)
|| rEntry.nPathLen != nPathLen
|| !rEntry.sPath.equals( sLOCPath );
}