freetype2/include/freetype/internal
Andrew Church 67cf7a8841 Fix Savannah bug #39266.
If memory allocations fail at certain points while opening a font,
FreeType can either crash due to a NULL dereference or leak memory.

* include/freetype/internal/ftobjs.c (FT_Face_InternalRec,
FT_LibraryRec): Make `refcount' a signed integer.  If, for example,
FT_Open_Face() fails in a memory allocation before the face's
reference count is set to 1, a subsequent `FT_Done_Library' call
would otherwise loop over `FT_Done_Face' 2^32 times before freeing
the face.

* src/base/ftobjs.c (open_face): Initialize `stream' and friends
earlier.
(FT_Open_Face) <Fail>: Behave correctly if `node' is NULL.
(FT_Destroy_Module) <Fail>: Check that `renderer_clazz' is valid.
2013-06-18 09:35:34 +02:00
..
services Use `FT_Module' instead of `FT_Library' argument in property funcs. 2012-09-15 09:10:06 +02:00
autohint.h [autofit] Some macro and variable renamings for orthogonality. 2012-08-27 06:57:05 +02:00
ftcalc.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
ftdebug.h Another try on pragmas. 2013-06-12 23:33:11 +02:00
ftdriver.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
ftgloadr.h Prevent the overflows by a glyph with too many points or contours. 2009-07-08 14:52:11 +09:00
ftmemory.h Fix compiler warnings. 2013-06-05 13:43:20 +02:00
ftobjs.h Fix Savannah bug #39266. 2013-06-18 09:35:34 +02:00
ftpic.h Formatting, comment fixes. 2012-07-29 13:15:53 +02:00
ftrfork.h Formatting, comment fixes. 2012-07-29 13:15:53 +02:00
ftserv.h Another try on pragmas. 2013-06-12 23:33:11 +02:00
ftstream.h Next round of compiler fixes. 2013-06-06 09:16:38 +02:00
fttrace.h [cff] Add a new Type 2 interpreter and hinter. 2013-04-13 18:53:28 +02:00
ftvalid.h Add and improve pragmas for MSVC compiler. 2013-06-07 18:10:40 +02:00
internal.h Another try on pragmas. 2013-06-12 23:33:11 +02:00
psaux.h [type1] Fix handling of /FontBBox in MM fonts. 2012-12-23 21:14:37 +01:00
pshints.h Formatting, comment fixes. 2012-07-29 13:15:53 +02:00
sfnt.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
t1types.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
tttypes.h */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00