[luatex] Segfault: pdfe.getstring()

luigi scarso luigi.scarso at gmail.com
Wed Mar 10 08:25:47 CET 2021


On Wed, Mar 10, 2021 at 3:06 AM Andreas Matthias <andreas.matthias at gmail.com>
wrote:

> I get a segfault with pdfe.getstring(). To replicate this issue run:
>
>   # lualatex foo.tex
>   # texlua foo.lua
>
> File 'foo.tex':
>
> \documentclass{article}
> \usepackage{hyperref}
> \begin{document}
> \href{https://www.ctan.org}{CTAN}
> \end{document}
>
> File 'foo.lua':
>
> doc = pdfe.open('foo.pdf')
> annot = pdfe.getpage(doc, 1).Annots[1]
> uri = pdfe.getstring(annot.A, "URI", true)
> print(uri)
>
> I'm running:
> This is LuaTeX, Version 1.12.0 (TeX Live 2020)
>
> Best Regards
> Andreas
>

confirmed for 1.12.0, but 1.13.0 seems to  be ok.

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20210310/5494171d/attachment.html>


More information about the luatex mailing list.