Skip to content
Snippets Groups Projects
Commit 9b8b6ac6 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

getPDFSignatureCount: fix "too much recursion" error with some PDFs

The regex used to detect signatures uses "(.|\\s)" to emulate dotall, since
old browsers don't support it.

For some reason that leads to internal errors in Firefox with larger files in some cases.

Replacing it with a simpler "[\\s\\S]" class makes things work.

Also adds some tests with real PDF files, "QPDF-367-0.pdf" was triggering this issue.

Fixes #46
parent 5c15f2c0
Branches
No related tags found
1 merge request!69getPDFSignatureCount: fix "too much recursion" error with some PDFs
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment