Bug 27465

Summary: xfs crashes with truetype fonts
Product: [Retired] Red Hat Raw Hide Reporter: Stefan Sorensen <sts>
Component: XFree86Assignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-14 00:45:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Proposed patch none

Description Stefan Sorensen 2001-02-14 00:41:58 UTC
When truetype fonts are use, xfs will crash on some applications like gfontsel.

This is the xfs from XFree86-xfs-4.0.2-6, but might be present in earlier
versions too.

The offending function is
xc/lib/font/FreeType/ftfuncs.c:FreeTypeFontGetGlyph which doesn't check for
a valid encoding in the font.

Comment 1 Stefan Sorensen 2001-02-14 00:44:57 UTC
Created attachment 9966 [details]
Proposed patch

Comment 2 Mike A. Harris 2001-02-14 18:21:40 UTC
Patch applied, thanks very much for the fix!  Good job!