freetype2/src
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
..
autofit Apply fixes for cppcheck nitpicks. 2013-06-04 10:30:48 +02:00
base Fix Savannah bug #39266. 2013-06-18 09:35:34 +02:00
bdf Next round of compiler fixes. 2013-06-06 09:16:38 +02:00
bzip2 */*: Use FT_Err_Ok only. 2013-03-14 11:21:17 +01:00
cache * src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush. 2013-06-09 08:20:54 +02:00
cff [cff] Add code to Adobe's engine to handle ppem > 2000. 2013-06-13 07:46:32 +02:00
cid Next round of compiler fixes. 2013-06-06 09:16:38 +02:00
gxvalid Apply fixes for cppcheck nitpicks. 2013-06-04 10:30:48 +02:00
gzip Add and improve pragmas for MSVC compiler. 2013-06-07 18:10:40 +02:00
lzw Apply fixes for cppcheck nitpicks. 2013-06-04 10:30:48 +02:00
otvalid */*: Use FT_ERR_EQ, FT_ERR_NEQ, and FT_ERR where appropriate. 2013-03-14 17:50:49 +01:00
pcf Next round of compiler fixes. 2013-06-06 09:16:38 +02:00
pfr */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
psaux Next round of compiler fixes. 2013-06-06 09:16:38 +02:00
pshinter Apply fixes for cppcheck nitpicks. 2013-06-04 10:30:48 +02:00
psnames Whitespace. 2013-03-17 08:14:46 +01:00
raster More compiler warning fixes. 2013-06-12 10:58:06 +02:00
sfnt [sfnt] Improve embedded bitmap tracing. 2013-06-10 12:57:16 +02:00
smooth * src/smooth/ftgrays.c One final pragma to silence 64-bit MSVC. 2013-06-14 18:33:39 +02:00
tools Missed some cppcheck items. 2013-06-04 13:09:01 +02:00
truetype [truetype] Improve handling of broken sbit advance widths. 2013-06-10 14:59:21 +02:00
type1 More compiler warning fixes. 2013-06-12 10:58:06 +02:00
type42 Apply fixes for cppcheck nitpicks. 2013-06-04 10:30:48 +02:00
winfonts */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code. 2013-05-10 07:58:47 +02:00
Jamfile Add license. 2005-06-04 23:04:30 +00:00