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

Validate xref position explicitly #980

Conversation

pietermarsman
Copy link
Member

@pietermarsman pietermarsman commented Jul 8, 2024

Pull request

Fixes #979.

Validate xref position explicitly. If it cannot be parsed as an integer, or if it is a negative integer a PDFNoValidXRef is raised.

How Has This Been Tested?

With the fuzz file from #979 and with nox.

Checklist

  • I have read CONTRIBUTING.md.
  • I have added a concise human-readable description of the change to CHANGELOG.md.
  • I have tested that this fix is effective or that this feature works.
  • I have added docstrings to newly created methods and classes.
  • I have updated the README.md and the readthedocs documentation. Or verified that this is not necessary.

@pietermarsman pietermarsman added this pull request to the merge queue Jul 9, 2024
Merged via the queue into master with commit 3a789a4 Jul 9, 2024
10 of 11 checks passed
@pietermarsman pietermarsman deleted the 979-oss-fuzz-issue-70081-pdfminersixpage_extraction_fuzzer-uncaught-exception-in-seek branch July 9, 2024 04:52
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

Successfully merging this pull request may close these issues.

OSS-Fuzz issue 70081: pdfminersix:page_extraction_fuzzer: Uncaught exception in seek
1 participant