forked from minhngoc25a/freetype2
* src/base/ftobjs.c (Mac_Read_POST_Resource): Avoid memory leak
by a broken POST table in resource-fork. Return after freeing the buffered POST table when it is found to be broken.
This commit is contained in:
parent
02b8e7e8d7
commit
5aff85301b
|
@ -1,3 +1,9 @@
|
||||||
|
2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
|
||||||
|
|
||||||
|
* src/base/ftobjs.c (Mac_Read_POST_Resource): Avoid memory leak
|
||||||
|
by a broken POST table in resource-fork. Return after freeing
|
||||||
|
the buffered POST table when it is found to be broken.
|
||||||
|
|
||||||
2014-11-25 Werner Lemberg <wl@gnu.org>
|
2014-11-25 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
*/*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.
|
*/*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.
|
||||||
|
|
|
@ -1603,9 +1603,9 @@
|
||||||
if ( error )
|
if ( error )
|
||||||
goto Exit2;
|
goto Exit2;
|
||||||
if ( FT_READ_LONG( rlen ) )
|
if ( FT_READ_LONG( rlen ) )
|
||||||
goto Exit;
|
goto Exit2;
|
||||||
if ( FT_READ_USHORT( flags ) )
|
if ( FT_READ_USHORT( flags ) )
|
||||||
goto Exit;
|
goto Exit2;
|
||||||
FT_TRACE3(( "POST fragment[%d]: offsets=0x%08x, rlen=0x%08x, flags=0x%04x\n",
|
FT_TRACE3(( "POST fragment[%d]: offsets=0x%08x, rlen=0x%08x, flags=0x%04x\n",
|
||||||
i, offsets[i], rlen, flags ));
|
i, offsets[i], rlen, flags ));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue