Fix Savannah bug #30247.

* src/pcf/pcfread.c (pcf_get_metrics): Disallow (invalid) fonts with
zero metrics.
This commit is contained in:
Werner Lemberg 2010-06-24 20:20:26 +02:00
parent e419f48b40
commit 6fc12943e9
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2010-06-24 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30247.
* src/pcf/pcfread.c (pcf_get_metrics): Disallow (invalid) fonts with
zero metrics.
2010-06-24 Graham Asher <graham.asher@btinternet.com>
* src/smooth/ftgrays.c (gray_render_cubic): Fix algorithm.

View File

@ -2,7 +2,8 @@
FreeType font driver for pcf fonts
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010 by
Francesco Zappa Nardelli
Permission is hereby granted, free of charge, to any person obtaining a copy
@ -607,6 +608,9 @@ THE SOFTWARE.
face->nmetrics = nmetrics;
if ( !nmetrics )
return PCF_Err_Invalid_Table;
FT_TRACE4(( "pcf_get_metrics:\n" ));
FT_TRACE4(( " number of metrics: %d\n", nmetrics ));