[bdf] Fix Savannah bug #35607.

* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
negative encoding values.
This commit is contained in:
Werner Lemberg 2012-02-26 06:18:58 +01:00
parent 58cbc465d2
commit 28dd2c4595
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2012-02-26 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #35607.
* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
negative encoding values.
2012-02-26 Werner Lemberg <wl@gnu.org>
[type1] Fix Savannah bug #35606.

View File

@ -1606,6 +1606,11 @@
p->glyph_enc = _bdf_atol( p->list.field[1], 0, 10 );
/* Normalize negative encoding values. The specification only */
/* allows -1, but we can be more generous here. */
if ( p->glyph_enc < -1 )
p->glyph_enc = -1;
FT_TRACE4(( DBGMSG2, p->glyph_enc ));
/* Check that the encoding is in the Unicode range because */