Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1241939

Summary: bdftopcf: bdf input, xtfont4.bdf, corrupt
Product: Red Hat Enterprise Linux 7 Reporter: Tomas Pelka <tpelka>
Component: libXfontAssignee: Benjamin Tissoires <btissoir>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: peter.hutterer
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libXfont-1.5.1-2.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 04:08:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Pelka 2015-07-10 13:09:03 UTC
Description of problem:
While compiling XTS I got bdftopcf related error

Version-Release number of selected component (if applicable):
xorg-x11-font-utils-7.5-20.el7

How reproducible:
100%

Steps to Reproduce:
1. build XTS
2.
3.

Actual results:
Making all in fonts
make[3]: Entering directory `/mnt/tests/libX11/tests/XTS/xts/xts5/fonts'
  CC       xtfont0.lo
  CC       xtfont1.lo
  CC       xtfont2.lo
  CC       xtfont3.lo
  CC       xtfont4.lo
  CC       xtfont5.lo
  CC       xtfont6.lo
  CCLD     libfont.la
/usr/bin/bdftopcf -t -o xtfont0.pcf xtfont0.bdf
/usr/bin/bdftopcf -t -o xtfont1.pcf xtfont1.bdf
/usr/bin/bdftopcf -t -o xtfont2.pcf xtfont2.bdf
/usr/bin/bdftopcf -t -o xtfont3.pcf xtfont3.bdf
/usr/bin/bdftopcf -t -o xtfont4.pcf xtfont4.bdf
BDF Error on line 32: character 'ascii001' has out of range width, -8
/usr/bin/bdftopcf: bdf input, xtfont4.bdf, corrupt
make[3]: *** [xtfont4.pcf] Error 1
make[3]: Leaving directory `/mnt/tests/libX11/tests/XTS/xts/xts5/fonts'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/tests/libX11/tests/XTS/xts/xts5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/tests/libX11/tests/XTS/xts'
make: *** [all] Error 2
make failed


Expected results:
should build

Additional info:
please let me know what additional info you need

Comment 1 Tomas Pelka 2015-07-10 13:10:06 UTC
XTS build just fine with rhel6.7 and rhel6.6, last time (week ago) I checked.

Comment 2 Peter Hutterer 2015-07-13 06:28:48 UTC
reproduced on xorg-x11-font-utils-7.5-18.1.el7.x86_64, so the culprit is libXfont (works with libXfont-1.4.7-2.el7_0.x86_64)

Comment 3 Peter Hutterer 2015-07-13 07:02:38 UTC
http://cgit.freedesktop.org/xorg/lib/libXfont/commit/?id=2351c83a77a478b49cba6beb2ad386835e264744

added the check for non-negative width. xtfont4 and xtfont6 are both fonts with variable width, reverse which probably explains the negative width. introduced by the fixes for Bug 1203719

Comment 4 Benjamin Tissoires 2015-07-13 17:31:56 UTC
Actually, libXfont-1.5.1-1.el7 already contains the fix for CVE-2015-1804. So removing the dep.

I can not compile XTS under F22 either, so I will need to investigate a little bit more.

Comment 5 Benjamin Tissoires 2015-07-13 18:44:53 UTC
Patch sent upstream: http://lists.x.org/archives/xorg-devel/2015-July/046914.html

Comment 10 errata-xmlrpc 2015-11-19 04:08:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2082.html