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

[PATCH] Adobe reader crash due to wrong length

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Writing
    • None

    Description

      Adobe reader 9 and 10 crash because length inside source pdf was wrong

      Source pdf has length of 174, should be 172, this causes pdfbox to add "q" to end of stream and crash reader

      Im running using fop test.fo out.pdf

      /Type /XObject
      /Resources 5125 0 R
      /Subtype /Form
      /BBox [0 0 413.3900146484 17.4599990845]
      /Matrix [1 0 0 1 0 0]
      /Length 5126 0 R
      /FormType 1
      >>
      stream
      q Q /Tx BMC q 0 0 413.39 15.46 re W n q BT 1 0 0 1 2 5.46 Tm /CourierNewPSMT 10 Tf 0 g ($17,500 TSP Pre-Tax Contributions or Roth (After Tax) Contributio)Tj 0 g ET Q EMC
      endstream

      5126 0 obj
      174
      endobj

      Attachments

        1. pdfcrash2.patch
          0.6 kB
          Simon Steiner

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ssteiner Simon Steiner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: