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:30:05 UTC

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

     [ https://issues.apache.org/jira/browse/PDFBOX-1696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-1696:
------------------------------------

    Description: 
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 < 3 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.

  was:
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.

    
> 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
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> 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 < 3 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