[poppler] c++ interface segfaults for invalid password
Jeroen Ooms
jeroen at berkeley.edu
Mon Jun 12 09:43:10 UTC 2017
Some more debugging and a bug report regarding this issue:
https://bugs.freedesktop.org/show_bug.cgi?id=101385
On Sun, Jun 11, 2017 at 1:51 PM, Jeroen Ooms <jeroen at berkeley.edu> wrote:
> If the user enters an incorrect password when reading a protected pdf via
> document::load_from_raw_data() an error is printed to stdout
>
> error: Incorrect password
>
> However the load_from_raw_data() does not raise an exception and returns a
> valid *document. However this document segfaults when we call for example
> doc->pages().
>
> I would have expected that load_from_raw_data() raises an exception instead
> of just printing "incorrect password"?
>
> If this is intended, what property of *document should I check to see if
> document::load_from_raw_data() was successful?
>
More information about the poppler
mailing list