You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2017/06/08 17:57:05 UTC
svn commit: r1798101 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
Author: tilman
Date: Thu Jun 8 17:57:05 2017
New Revision: 1798101
URL: http://svn.apache.org/viewvc?rev=1798101&view=rev
Log:
PDFBOX-3817: empty streams must have a length
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java?rev=1798101&r1=1798100&r2=1798101&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java Thu Jun 8 17:57:05 2017
@@ -63,6 +63,7 @@ public class COSStream extends COSDictio
public COSStream(ScratchFile scratchFile)
{
super();
+ setInt(COSName.LENGTH, 0);
this.scratchFile = scratchFile != null ? scratchFile : ScratchFile.getMainMemoryOnlyInstance();
}