| Summary: | [abrt] mupdf-0.9-1.fc16: __GI_raise: Process /usr/bin/mupdf was killed by signal 6 (SIGABRT) | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vedran Miletić <vedran> | ||||||||||||||
| Component: | mupdf | Assignee: | Pavel Zhukov <pavel> | ||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||
| Severity: | medium | Docs Contact: | |||||||||||||||
| Priority: | medium | ||||||||||||||||
| Version: | 16 | CC: | htl10, ousia, pavel | ||||||||||||||
| Target Milestone: | --- | ||||||||||||||||
| Target Release: | --- | ||||||||||||||||
| Hardware: | i686 | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| Whiteboard: | abrt_hash:c85de5ab17cef158bfecfd82ba5d90948e9f852b | ||||||||||||||||
| Fixed In Version: | mupdf-0.9-3.fc16 | Doc Type: | Bug Fix | ||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||
| Last Closed: | 2012-03-26 04:00:22 UTC | Type: | --- | ||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Vedran Miletić
2011-11-09 11:36:04 UTC
Created attachment 532543 [details]
File: environ
Created attachment 532544 [details]
File: smolt_data
Created attachment 532545 [details]
File: maps
Created attachment 532546 [details]
File: backtrace
Opening PDF file and crashed. backtrace_rating: 4 Package: mupdf-0.9-1.fc16 OS Release: Fedora release 16 (Verne) Created attachment 567316 [details]
File: backtrace
Really? I have mupdf-0.9-1.fc16.x86_64 and tried a few latex-generated PDFs.
From the two redhat bugzilla backtraces though, it looks like it is string
buffer overrun. Does your LaTeX pdf's have extremely long titles?
apps/pdfapps.c: line 360 -ish, have this:
-----------
static void pdfapp_showpage(pdfapp_t *app, int loadpage, int drawpage, int
repaint)
{
char buf[256];
-----------
could you try changing the 256 to some large number, and/or the sprintf() a few
lines down, to snprintf(buf, 256, ...)?
---------------
if (drawpage)
{
sprintf(buf, "%s - %d/%d (%d dpi)", app->doctitle,
-------------
Created attachment 569157 [details]
a pdf with a stupidously long pdfdoc title
Based on my inspection of the mupdf code and my suspection that I can overrun
that string buffer, I made a pdf with a stupideously long pdfdoc title. And it
crashes mupdf. Both xpdf and gs are happy to open it.
I've tried to reproduce bug on F17. All latex generated files have been opened successfully. Vedran, can you attach pdf file? (In reply to comment #9) > I've tried to reproduce bug on F17. All latex generated files have been opened > successfully. > Vedran, can you attach pdf file? The pdf attached in comment 8 was latex-generated - although it was specifically constructed to try to trigger the suspected (and confirmed) buffer overrun. The important part of the latex doc code which triggers the buffer overrun is the pdftitle parameter of hyperref - something like this: -------------------------------- \documentclass[11pt]{article} \usepackage[...other options..., pdftitle={A very long long string}]{hyperref} ... ------------------------------- It looks like there are a few other buffer overrun possibility in the same mupdf source file, however. mupdf-0.9-3.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/mupdf-0.9-3.fc16 Package mupdf-0.9-3.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing mupdf-0.9-3.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-4122/mupdf-0.9-3.fc16 then log in and leave karma (feedback). mupdf-0.9-3.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. mupdf-0.9-3.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |