Skip to content

Fix: Crash when opening pdf with empty page

Fixes #4597 (closed)

Reporter submitted an example of a pdf that crashes Inkscape when it is opened. Attaching a debugger showed nullptr dereferences in some of the pdf loading code. I think this occurs because there is no resource dictionary for page 12 of the example pdf (which is blank). I added guards to the cases I could find with this PDF, but it was too much code to easily audit for similar bugs. The example PDF does load correctly, however.

image

Merge request reports