pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1798102 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
Date Thu, 08 Jun 2017 17:57:10 GMT
Author: tilman
Date: Thu Jun  8 17:57:09 2017
New Revision: 1798102

URL: http://svn.apache.org/viewvc?rev=1798102&view=rev
Log:
PDFBOX-3817: empty streams must have a length

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java?rev=1798102&r1=1798101&r2=1798102&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java Thu Jun  8 17:57:09
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();
     }
     



Mime
View raw message