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
..
2013-03-17 08:14:46 +01:00
2013-03-17 08:14:46 +01:00
2012-01-17 15:13:50 +09:00
2013-03-14 10:27:35 +01:00
2013-06-05 13:43:20 +02:00
2013-05-12 07:29:04 +02:00
2013-06-04 10:30:48 +02:00
2013-05-13 09:06:42 +02:00
2009-03-03 21:35:32 +00:00
2013-03-14 10:27:35 +01:00
2013-03-14 10:27:35 +01:00
2013-03-14 10:27:35 +01:00
2013-03-14 10:27:35 +01:00
2013-03-14 10:27:35 +01:00
2013-06-04 10:30:48 +02:00
2013-06-18 09:35:34 +02:00
2013-03-14 10:27:35 +01:00
2013-03-14 10:27:35 +01:00
2013-03-14 10:27:35 +01:00
2013-06-06 09:16:38 +02:00
2013-05-04 15:26:24 +02:00
2013-03-14 10:27:35 +01:00
2013-05-05 10:44:21 +02:00
2004-12-13 23:16:59 +00:00
2013-05-05 16:13:01 +02:00
2013-04-12 20:11:38 +02:00
2013-04-12 20:11:38 +02:00