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 2014/06/08 23:13:01 UTC

[jira] [Closed] (PDFBOX-1634) [PATCH] Adobe reader crash due to wrong length

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

Tilman Hausherr closed PDFBOX-1634.
-----------------------------------

    Resolution: Duplicate

Closing as duplicate, although you came first and it is PDFBOX-2016 that is duplicate :-) Sorry!

> [PATCH] Adobe reader crash due to wrong length
> ----------------------------------------------
>
>                 Key: PDFBOX-1634
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1634
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>            Reporter: simon steiner
>         Attachments: pdfcrash2.patch
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.2#6252)