diff options
author | Christian Lippka ORACLE <christian.lippka@oracle.com> | 2011-01-03 18:09:17 +0100 |
---|---|---|
committer | Christian Lippka ORACLE <christian.lippka@oracle.com> | 2011-01-03 18:09:17 +0100 |
commit | 3e36a47e3877299b34e7e7677f9ca2c4510f1e0a (patch) | |
tree | 5faef9a209bf60e2cb308818e402d5fc4429e94e | |
parent | 03cfe2c9032b9236d283735f95c58ba917e2786f (diff) |
impress208: #i115944# fixing large ooxml files
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index ce4378609..e95ba9794 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(); |