[poppler] [PATCH] Tagged-PDF: Fix parsing of attached element attributes

Albert Astals Cid aacid at kde.org
Mon Feb 10 13:49:20 PST 2014


El Dilluns, 10 de febrer de 2014, a les 23:07:05, Adrian Perez de Castro va 
escriure:
> Hello Albert,
> 
> Albert Astals Cid <aacid at kde.org> writes:
> > El Dilluns, 10 de febrer de 2014, a les 20:34:49, Adrian Perez de Castro
> > va
> > 
> > escriure:
> >> The wrong object was used as attribute dictionary, which caused
> >> a segmentation fault when parsing PDF files in which the structure
> >> elements included attributes attached to them. This patch fixes the
> >> issue.
> > 
> > Do we have some command line program that runs over a file and prints the
> > structure elements?
> > 
> > If not, it'd be great to have one so that we can run it over all files of
> > the> testsuite and see which crash, etc. And also find potential
> > regressions.
> Attached to bug #64816 [1] there is a patch that adds a “-struct” flags
> (and a “-struct-text” flag) to “pdfinfo” [2]. Once applied, we could use
> “pdfinfo” to dump the document structure. I could make sure that the
> output is stable (for example making it so dictionary items are printed
> in the alphabetical key order) and then the output could be used for
> regression tests as well.

I think that'd make sense.

Cheers,
  Albert

> 
> Cheers,
> 
> -Adrian
> 
> 
> ---
> [1] https://bugs.freedesktop.org/show_bug.cgi?id=64816
> [2] https://bugs.freedesktop.org/attachment.cgi?id=89056



More information about the poppler mailing list