[Poppler-bugs] [Bug 85370] New: [pdfimages] Segfault when output set to /dev/null or other place with no write access

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 23 07:43:10 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=85370

            Bug ID: 85370
           Summary: [pdfimages] Segfault when output set to /dev/null or
                    other place with no write access
           Product: poppler
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: utils
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: ravdune+bugzilla at gmail.com

Created attachment 108301
  --> https://bugs.freedesktop.org/attachment.cgi?id=108301&action=edit
example.pdf

OS: Fedora 20 (running in virtualbox)
Dependencies installed with: yum-builddep poppler
Version: GIT Master
Command line for loop demonstration: master/utils/pdftohtml <attached.pdf>
/dev/null

Note, repeats with all PDFs I tried (i.e. also not fuzzed ones). Tried also by
making with root folder /new and writing there. Both GDB information attached.
Also possible to repeat with:

mkdir out
chmod 000 out
master/utils/pdftohtml <any.pdf> out/out

#############################################################################
GDB output:

Reading symbols from /home/foobar/poppler/utils/.libs/lt-pdftohtml...done.
Starting program: /home/foobar/poppler/utils/.libs/lt-pdftohtml start.pdf
/dev/null

I/O Error: Couldn't open html file '/dev/null.html'
I/O Error: Couldn't open html file '/dev/null_ind.html'

Program received signal SIGSEGV, Segmentation fault.


#############################################################################
GDB output:

Reading symbols from /home/foobar/poppler/utils/.libs/lt-pdftohtml...done.
Starting program: /home/foobar/poppler/utils/.libs/lt-pdftohtml
1-pdftohtmlfuzz-10.pdf /new
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
I/O Error: Couldn't open html file '/new.html'
I/O Error: Couldn't open html file '/new_ind.html'

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5b71b60 in fwrite () from /lib64/libc.so.6

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20141023/7027a11a/attachment-0001.html>


More information about the Poppler-bugs mailing list