зеркало из https://github.com/stride3d/freetype.git
[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:
Родитель
4086fb7caf
Коммит
cee5d59358
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче