<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [pdfimages] Segfault when output set to /dev/null or other place with no write access"
href="https://bugs.freedesktop.org/show_bug.cgi?id=85370">85370</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[pdfimages] Segfault when output set to /dev/null or other place with no write access
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ravdune+bugzilla@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=108301" name="attach_108301" title="example.pdf">attachment 108301</a> <a href="attachment.cgi?id=108301&action=edit" title="example.pdf">[details]</a></span>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>