simple test:

fail:
c...@asus17:~/tss$ python -c "import poppler; 
poppler.document_new_from_data('\x00',1,password='')"
Xlib:  extension "RANDR" missing on display "localhost:13.0".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: document_new_from_data() argument 1 must be string without null 
bytes, not str


pass:
ju...@cp666:~/temp$ python -c "import poppler; 
poppler.document_new_from_data('\x00',1,password='')"
Xlib:  extension "RANDR" missing on display "localhost:10.0".
Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
Traceback (most recent call last):
  File "<string>", line 1, in <module>
glib.GError: PDF document is damaged


yeah, 0 is not a valid pdf.  that's not the point.

-- 
document_new_from_data() arg1 must be without null bytes
https://bugs.launchpad.net/bugs/312462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to