<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:pdknsk@gmail.com" title="pdknsk <pdknsk@gmail.com>"> <span class="fn">pdknsk</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - index -1 out of bounds in XRef::constructXRef"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105970">bug 105970</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>NEW
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - index -1 out of bounds in XRef::constructXRef"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105970#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - index -1 out of bounds in XRef::constructXRef"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105970">bug 105970</a>
from <span class="vcard"><a class="email" href="mailto:pdknsk@gmail.com" title="pdknsk <pdknsk@gmail.com>"> <span class="fn">pdknsk</span></a>
</span></b>
<pre>I'm using the latest code. I can also reproduce it with poppler-render.
$ cpp/tests/poppler-render poppler-105970.pdf -o tmp.png
poppler/poppler/XRef.cc:943:21: runtime error: index -1 out of bounds for type
'char [256]'
#0 0x612e32 in XRef::constructXRef(bool*, bool)
poppler/poppler/XRef.cc:943:21
#1 0x61185d in XRef::XRef(BaseStream*, long long, long long, bool*, bool)
poppler/poppler/XRef.cc:324:18
#2 0x59fec6 in PDFDoc::setup(GooString*, GooString*)
poppler/poppler/PDFDoc.cc:282:14
#3 0x59fb0a in PDFDoc::PDFDoc(GooString*, GooString*, GooString*, void*)
poppler/poppler/PDFDoc.cc:182:8
#4 0x403dc1 in poppler::document_private::document_private(GooString*,
std::string const&, std::string const&) poppler/cpp/poppler-document.cpp:77:15
#5 0x409677 in poppler::document::load_from_file(std::string const&,
std::string const&, std::string const&)
poppler/cpp/poppler-document.cpp:1047:33
#6 0x401a42 in main poppler/cpp/tests/poppler-render.cpp:84:44</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>