Skip to content

Don't segfault in getPDF{Major,Minor}Version when catalog is null.

Chris Lesniewski requested to merge clesniewski/poppler:fix-version into master

Catalog is null for locked PDFs. This causes getPDFMajorVersion/getPDFMinorVersion to segfault. This breaks the python-poppler test suite.

Fix by checking for null and reverting to the old behavior.

Merge request reports