<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 - Crash when calling cmsGetColorSpace"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97870">97870</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash when calling cmsGetColorSpace
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</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>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mkasik@redhat.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=126644" name="attach_126644" title="reproducer">attachment 126644</a> <a href="attachment.cgi?id=126644&action=edit" title="reproducer">[details]</a></span>
reproducer
Evince sometimes crashes in cmsGetColorSpace() because it gets NULL as an
argument. I was able to reproduce this with the attached file. The crash
happens only in evince's recent view mode so the file has to be opened before
that.
Steps to reproduce:
1) run "evince postscript_un_linguaggio_per_la_composizione_finale.pdf"
2) close evince
3) run evince
Backtrace:
#0 0x00007fffe007c210 in cmsGetColorSpace (hProfile=0x0) at cmsio0.c:952
#1 0x00007fffc98b69be in GfxICCBasedColorSpace::parse(Array*, OutputDev*,
GfxState*, int) (arr=0x7fffb82255b0, out=0x0, state=0x0, recursion=1) at
GfxState.cc:2055
#2 0x00007fffc98b0506 in GfxColorSpace::parse(GfxResources*, Object*,
OutputDev*, GfxState*, int) (res=0x0, csObj=0x7fffca7fb7a0, out=0x0, state=0x0,
recursion=1) at GfxState.cc:406
#3 0x00007fffc98b906f in GfxIndexedColorSpace::parse(GfxResources*, Array*,
OutputDev*, GfxState*, int) (res=0x0, arr=0x7fffb81ebea0, out=0x0, state=0x0,
recursion=0) at GfxState.cc:2590
#4 0x00007fffc98b0588 in GfxColorSpace::parse(GfxResources*, Object*,
OutputDev*, GfxState*, int) (res=0x0, csObj=0x7fffca7fb990, out=0x0, state=0x0,
recursion=0) at GfxState.cc:408
#5 0x00007fffc98f2042 in Page::loadThumb(unsigned char**, int*, int*, int*)
(this=0x7fffb80625f0, data_out=0x7fffca7fba58, width_out=0x7fffca7fba54,
height_out=0x7fffca7fba50, rowstride_out=0x7fffca7fba4c) at Page.cc:691
#6 0x00007fffe02f85b0 in poppler_page_get_thumbnail(PopplerPage*)
(page=0x7fffb8060040) at poppler-page.cc:491
#7 0x00007fffe05450bf in pdf_document_get_thumbnail_surface(EvDocument*,
EvRenderContext*) (document=0x7fffd8003730, rc=0xc61940) at ev-poppler.cc:538
#8 0x00007ffff7bacced in ev_document_get_thumbnail_surface
(document=0x7fffd8003730, rc=0xc61940) at ev-document.c:777
#9 0x00007ffff7948889 in ev_job_thumbnail_run (job=0xe58980) at ev-jobs.c:885
#10 0x00007ffff79468f4 in ev_job_run (job=0xe58980) at ev-jobs.c:216
#11 0x00007ffff794b92b in ev_job_thread (job=0xe58980) at
ev-job-scheduler.c:184
#12 0x00007ffff794ba17 in ev_job_thread_proxy (data=0x0) at
ev-job-scheduler.c:217
#13 0x00007ffff4238ae3 in g_thread_proxy () at /usr/lib64/libglib-2.0.so.0
#14 0x00007ffff3a916ca in start_thread (arg=0x7fffca7fc700) at
pthread_create.c:333
#15 0x00007ffff37cbf6f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:105
Here are downstream reports for this crash:
<a href="https://retrace.fedoraproject.org/faf/reports/1219994/">https://retrace.fedoraproject.org/faf/reports/1219994/</a>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1363669">https://bugzilla.redhat.com/show_bug.cgi?id=1363669</a>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1293445">https://bugzilla.redhat.com/show_bug.cgi?id=1293445</a>
<a href="https://retrace.fedoraproject.org/faf/reports/896435/">https://retrace.fedoraproject.org/faf/reports/896435/</a></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>