Commits

Anonymous committed 0d77f9a

impress208: #i115944# fixing large ooxml files

  • Participants
  • Parent commits 29638e3

Comments (0)

Files changed (1)

package/source/zipapi/ZipFile.cxx

 
 		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();