You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2013/08/16 15:29:50 UTC

[jira] [Created] (PDFBOX-1696) Bug in org.apache.pdfbox.io.Ascii85OutputStream

Tilman Hausherr created PDFBOX-1696:
---------------------------------------

             Summary: Bug in org.apache.pdfbox.io.Ascii85OutputStream 	
                 Key: PDFBOX-1696
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1696
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr


There's a bug in ASCII85OutputStream.java in 

     public final void write(byte[] b,int off, int sz)

The effect of the bug is that buffers with length < 4 produce no output. Fix:

after 

     if(count < 3) 
     {

add this line:

         flushed = false;

better: delete the whole function and let the superclass handle it. I doubt that the current implementation saves much time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira