[PATCH] glamor: Handle unexpected GetGlyphs results better

Keith Packard keithp at keithp.com
Mon Apr 21 14:38:13 PDT 2014


Keith Packard <keithp at keithp.com> writes:

> GetGlyphs is supposed to always return the full list of characters
> when there is a default character available. However, if an
> application opens a 16-bit two dimensional font and then draws with
> 8-bit requests, GetGlyphs will return zero glyphs if there is no 0th
> row. This is probably a bug in GetGlyphs, but it's easy to protect
> glamor from it by simply falling through to the case that handles
> GetGlyphs failures for fonts without a default character.

Eric asked why I was fixing this here instead of in GetGlyphs
itself. The reason is that the underlying bug is in libXfont, and while
the rest of the server has bugs because of that, they don't crash as a
result.

I've also sent a bug fix for libXfont that will make the rest of the
backends work correctly for this case.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140421/d582b719/attachment.sig>


More information about the xorg-devel mailing list