Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1696

Bug in org.apache.pdfbox.io.Ascii85OutputStream

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.8.3, 2.0.0
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                tilman Tilman Hausherr
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified