Bug 85370 - [pdftohtml] Segfault when output set to /dev/null or other place with no write access
Summary: [pdftohtml] Segfault when output set to /dev/null or other place with no writ...
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-23 14:43 UTC by MH
Modified: 2018-08-21 10:33 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
example.pdf (317 bytes, text/plain)
2014-10-23 14:43 UTC, MH
Details

Description MH 2014-10-23 14:43:10 UTC
Created attachment 108301 [details]
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
Comment 1 Henri Salo 2017-09-03 16:53:16 UTC
I can reproduce this issue.
Comment 2 GitLab Migration User 2018-08-21 10:33:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/255.


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.