forked from minhngoc25a/freetype2
[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'.
This commit is contained in:
parent
65d6572105
commit
9b6b5754b5
|
@ -1,3 +1,11 @@
|
|||
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'.
|
||||
|
||||
2012-12-10 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[truetype] Scale F_dot_P down.
|
||||
|
|
|
@ -2169,7 +2169,10 @@
|
|||
p->cnt = p->font->props_size = _bdf_atoul( p->list.field[1], 0, 10 );
|
||||
|
||||
if ( FT_NEW_ARRAY( p->font->props, p->cnt ) )
|
||||
{
|
||||
p->font->props_size = 0;
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
p->flags |= _BDF_PROPS;
|
||||
*next = _bdf_parse_properties;
|
||||
|
|
Loading…
Reference in New Issue