Load any password protected pdf without providing a password. Attempting to get a page from that document will crash at the last line of PDFDoc::getPage because catalog is dereferenced without checking if it has been created yet.
yes, don't do that.
I'm going to close this, you're using the API wrong and it's crashing, fix is to use the API right.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.