summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2002-09-25 09:28:31 +0000
committerMikhail Voitenko <mav@openoffice.org>2002-09-25 09:28:31 +0000
commit27a3fb6ae3953b902941307d2179761532204934 (patch)
tree7fd0abec10d2a54b80646cd2e19dc6b36419a6a5 /package
parent4670d8d2a8b098ac5854bbe8bb6bd78db27c96ce (diff)
#92926# throw an exception in case package format is wrong
Diffstat (limited to 'package')
-rw-r--r--package/source/zipapi/ZipFile.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index 1db8585a8f2c..f7b2109bb1e9 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ZipFile.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: mtg $ $Date: 2002-01-29 15:27:45 $
+ * last change: $Author: mav $ $Date: 2002-09-25 10:28:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -126,7 +126,10 @@ ZipFile::ZipFile( Reference < XInputStream > &xInput, const Reference < XMultiSe
if (bInitialise)
{
if ( readCEN() == -1 )
+ {
aEntries.clear();
+ throw ZipException( OUString( RTL_CONSTASCII_USTRINGPARAM ( "stream data looks to be broken" ) ), Reference < XInterface > () );
+ }
}
}