[bdf] Fix Savannah bug #35643.

* src/bdf/bdflib.c (_bdf_list_ensure): Bring code in sync with
comment before `_bdf_list_split', this is, really allocate at least
five `field' elements.
This commit is contained in:
Werner Lemberg 2012-03-01 09:26:03 +01:00
parent 4086fb7caf
commit cee5d59358
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2012-02-29 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #35643.
* src/bdf/bdflib.c (_bdf_list_ensure): Bring code in sync with
comment before `_bdf_list_split', this is, really allocate at least
five `field' elements.
2012-02-29 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #35641.

View File

@ -462,7 +462,7 @@
if ( num_items > list->size )
{
unsigned long oldsize = list->size; /* same as _bdf_list_t.size */
unsigned long newsize = oldsize + ( oldsize >> 1 ) + 4;
unsigned long newsize = oldsize + ( oldsize >> 1 ) + 5;
unsigned long bigsize = (unsigned long)( FT_INT_MAX / sizeof ( char* ) );
FT_Memory memory = list->memory;