* 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:
suzuki toshiya 2014-11-26 14:36:12 +09:00
parent 02b8e7e8d7
commit 5aff85301b
2 changed files with 8 additions and 2 deletions

View File

@ -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>
*/*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.

View File

@ -1603,9 +1603,9 @@
if ( error )
goto Exit2;
if ( FT_READ_LONG( rlen ) )
goto Exit;
goto Exit2;
if ( FT_READ_USHORT( flags ) )
goto Exit;
goto Exit2;
FT_TRACE3(( "POST fragment[%d]: offsets=0x%08x, rlen=0x%08x, flags=0x%04x\n",
i, offsets[i], rlen, flags ));