Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Stack overflow with Invalid PageTree #261

Closed
eknoes opened this issue Jun 16, 2024 · 1 comment
Closed

bug: Stack overflow with Invalid PageTree #261

eknoes opened this issue Jun 16, 2024 · 1 comment

Comments

@eknoes
Copy link
Contributor

eknoes commented Jun 16, 2024

Infinite Recursion in PDFParser::ParsePagesIDs leads to a Stack Overflow. This happens because PDFParser::ParsePagesIDs is recursive and the PageTree has a cycle, see for example the attached file.
BrokenPageIDs.pdf

galkahana added a commit that referenced this issue Jun 22, 2024
galkahana added a commit that referenced this issue Jun 22, 2024
galkahana added a commit that referenced this issue Jun 22, 2024
* #261: recursion in page tree parsing. avoid with storing the current path and identifying cycles

* nl

* #262: recursion on object parsing. avoid with stroing the current path as parser state and identifying cyces

* missing algorithm reference

* #263: large allocation size following large columns value. limiting columns (and any integer) to max and mix pdf allowed value for integer to avoid

* #264: incorrect release of segment causing using after free. dont use PDFObjectCastPtr if not querying a new object!

* #265: adding test file for high count. correction is the same as earlier - limit value of integer
@galkahana
Copy link
Owner

should be dealt by #267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants