[MPlayer-dev-eng] [PATCH] Fix fontconfig crash when it can't find a config directory

Diego Biurrun diego at biurrun.de
Wed Dec 16 00:39:06 CET 2009


On Tue, Dec 15, 2009 at 08:43:03PM +0100, Adrian Stutz wrote:
> 
> FcFontMatch in font_load_ft.c expects its third argument to be a pointer and
> tries to assign it a result value when an error occurs. Current code passes
> 0 to the function, which leads to a crash if no font can be matched. This is
> the case if no fontconfig config directory (and therefore no fonts) can be
> found on the system.
> 
> This patch passes a proper pointer to the function, checks if it fails and
> falls back to the non-fontconfig behavior in that case.

Sounds good.  Commit if it works, which I assume it does...

Diego



More information about the MPlayer-dev-eng mailing list