[bdf] Fix Savannah bug #37907.

* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
negative second parameter of `ENCODING' field also.
This commit is contained in:
Werner Lemberg 2012-12-15 09:39:41 +01:00
parent 07bdb6e289
commit 7f2e4f4f55
2 changed files with 15 additions and 5 deletions

View File

@ -1,17 +1,24 @@
2012-12-15 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #37907.
* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
negative second parameter of `ENCODING' field also.
2012-12-15 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #37906.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Use correct array size for
checking `glyph_enc'.
* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Use correct array
size for checking `glyph_enc'.
2012-12-15 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #37905.
* src/bdf/bdflib.c (_bdf_parse_start): Reset `props_size' to zero in
case of allocation error; this value gets used in a loop in
`bdf_free_font'.
* src/bdf/bdflib.c (_bdf_parse_start) <STARTPROPERTIES>: Reset
`props_size' to zero in case of allocation error; this value gets
used in a loop in `bdf_free_font'.
2012-12-10 Alexei Podtelezhnikov <apodtele@gmail.com>

View File

@ -1624,6 +1624,9 @@
if ( p->glyph_enc == -1 && p->list.used > 2 )
p->glyph_enc = _bdf_atol( p->list.field[2], 0, 10 );
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 */