| Summary: | mkfontscale segfaults on /usr/share/fonts/default/ghostscript | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | w unruh <unruh> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, luigiwalser, sysadmin-bugs, thierry.vignaud, yann.cantin |
| Version: | 5 | Keywords: | PATCH, UPSTREAM, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | has_procedure MGA5-32-OK MGA5-64-OK advisory | ||
| Source RPM: | mkfontscale | CVE: | |
| Status comment: | |||
| Attachments: | strace mkfontscale /usr/share/fonts/default/ghostscript | ||
|
Description
w unruh
2015-09-30 05:45:11 CEST
Created attachment 7072 [details]
strace mkfontscale /usr/share/fonts/default/ghostscript
Here is the strace.
While it is possible that one should not run mkfontscale on the ghostscript fonts, mkfont should NOT SegFault.
Found the patch which works to prevent the segfault on ghostscript fonts. Have tested it and it works. (the fonts have no family names or weights) https://bugs.freedesktop.org/attachment.cgi?id=113951 The following patch 113952 I have not tested. This apparently substitutes the Font name for the Family name if the latter does not exist. The bug report for which those are the patches is https://bugs.freedesktop.org/show_bug.cgi?id=89409 Thanks for the report. Unfortunately there is no dedicated maintainer for this package, though I'm adding two packages in CC who updated it at some point. Maybe you should consider joining the packager team so that you could fix some bugs yourself? https://wiki.mageia.org/en/Becoming_a_Mageia_Packager Keywords:
(none) =>
PATCH, UPSTREAM Actually there's two patches in the fdo bug; I'll add them soon. Also, the fonts it's breaking on are buggy and RedHat removed them: https://bugzilla.redhat.com/show_bug.cgi?id=707007 I've done the same in Cauldron. Thanks for the report! Patched packages uploaded for Mageia 5 and Cauldron. Testing procedure in Comment 0 (ghostscript-fonts must be installed). Advisory: ---------------------------------------- The mkfontscale program has been patched to not crash on certain buggy fonts, such as the Hershey fonts included in the ghostscript-fonts package (fdo#89409). References: https://bugs.freedesktop.org/show_bug.cgi?id=89409 ---------------------------------------- Updated packages in core/updates_testing: ---------------------------------------- mkfontscale-1.1.2-1.1.mga5 from mkfontscale-1.1.2-1.1.mga5.src.rpm Hardware:
x86_64 =>
All
David Walser
2015-09-30 16:19:35 CEST
Whiteboard:
(none) =>
has_procedure I can confirm that the Hershey fonts do not work in Abiword. (Besides being ugly and unreadable, their carriage return does not do a linefeed.) And removing the hr* fonts from /usr/share/fonts/default/ghostscript removes the Hershey fonts from Abiword. Verified the fixed mkfontscale works on Mageia 5 i586. Whiteboard:
has_procedure =>
has_procedure MGA5-32-OK mga5 x86_64 mkfontscale-1.1.2-1.mga5.x86_64 : # mkfontscale /usr/share/fonts/default/ghostscript : segfault Installed packages : mkfontscale-1.1.2-1.1.mga5.x86_64.rpm # mkfontscale /usr/share/fonts/default/ghostscript Couldn't determine full name for hrpldi.pfa Couldn't determine weight for hrpldi.pfa etc. no segfault Update OK. CC:
(none) =>
yann.cantin Thanks, feel free to validated the update when it has both MGA5_*_OK Yann (by adding the "validated_update" keyword).
Dave Hodgins
2015-10-09 01:45:41 CEST
Keywords:
(none) =>
validated_update An update for this issue has been pushed to Mageia Updates repository. http://advisories.mageia.org/MGAA-2015-0148.html Status:
NEW =>
RESOLVED |