summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lippka ORACLE <christian.lippka@oracle.com>2011-01-03 18:09:17 +0100
committerChristian Lippka ORACLE <christian.lippka@oracle.com>2011-01-03 18:09:17 +0100
commit3d6d4b78498e049b23b529480414ec8bc56fa8ff (patch)
tree854247a354325a34fbcdf6a9b4e0baa1392e9e5a
parentde86e3362cf4fe6f65a66b01e74f19a8d33e289b (diff)
impress208: #i115944# fixing large ooxml files
-rw-r--r--package/source/zipapi/ZipFile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index f01b7ce06f4b..6b1aca5056c4 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -836,7 +836,8 @@ sal_Int32 ZipFile::recover()
aGrabber.seek( 0 );
- for( sal_Int32 nGenPos = 0; aGrabber.readBytes( aBuffer, 32000 ) && aBuffer.getLength() > 30; )
+ // TODO/LATER: let the files > 2Gb handle the 2Gb border correctly ( if header is splitted )
+ for( sal_Int32 nGenPos = 0; aGrabber.readBytes( aBuffer, SAL_MAX_INT32 ) && aBuffer.getLength() > 30; )
{
const sal_Int8 *pBuffer = aBuffer.getConstArray();
sal_Int32 nBufSize = aBuffer.getLength();