ref: 422d2a052a0d1aadb909f62e383c18264b999eb3
parent: c07ee52005254a8bb6ebe85b060b3f9bc7c70526
author: Werner Lemberg <[email protected]>
date: Mon Feb 27 13:25:22 EST 2006
formatting, copyright years
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,20 +6,23 @@
2006-02-27 David Turner <[email protected]>
- * src/base/ftutil.c: `ft_mem_alloc' and related functions now return
- an error if a negative size is passed in parameters.
+ * src/base/ftutil.c (ft_mem_alloc, ft_mem_qalloc, ft_mem_realloc,
+ ft_mem_qrealloc): Return an error if a negative size is passed in
+ parameters.
* src/cache/ftccache.c: Make ftc_node_destroy FT_BASE_DEF, it needs
to be exported for rogue clients.
- * src/pshinter/pshglob.c: Prevent problems with malformed fonts
- which have an odd number of blue values (these are broken according
- to the specs).
+ * src/pshinter/pshglob.c (psh_blues_set_zones_0): Prevent problems
+ with malformed fonts which have an odd number of blue values (these
+ are broken according to the specs).
- * src/cff/cffload.c, src/type1/t1load.c: Modify the loaders to force
- even-ness of `num_blue_values'. Also change the CFF loader so that
- invalid entries in index files are ignored.
+ * src/cff/cffload.c (cff_subfont_load), src/type1/t1load.c
+ (T1_Open_Face): Modify the loaders to force even-ness of
+ `num_blue_values'.
+ (cff_index_access_element): Ignore invalid entries in index files.
+
2006-02-27 Chia-I Wu <[email protected]>
* src/base/ftobjs.c (FT_Set_Char_Size): Ahh.. forgot to check the case
@@ -33,10 +36,10 @@
builds/mac/FreeType.ppc_classic.make.txt:
Update to new header inclusion introduced on 2006-02-16.
->>>>>>> 1.1258
2006-02-27 Chia-I Wu <[email protected]>
- * src/base/ftobjs.c (ft_glyphslot_grid_fit_metrics, FT_Load_Glyph):
+ * src/base/ftobjs.c (GRID_FIT_METRICS): New macro.
+ (ft_glyphslot_grid_fit_metrics, FT_Load_Glyph) [GRID_FIT_METRICS]:
Re-enable glyph metrics grid-fitting. It is now done in the base
layer.
(FT_Set_Char_Size, FT_Set_Pixel_Sizes): Make sure the width and
--- a/src/base/ftutil.c
+++ b/src/base/ftutil.c
@@ -115,6 +115,7 @@
if ( size < 0 || current < 0 )
{
+ /* may help catch/prevent nasty security issues */
error = FT_Err_Invalid_Argument;
}
else if ( size == 0 )
@@ -161,6 +162,7 @@
if ( size < 0 || current < 0 )
{
+ /* may help catch/prevent nasty security issues */
error = FT_Err_Invalid_Argument;
}
else if ( size == 0 )
@@ -190,6 +192,7 @@
return block;
}
+
FT_BASE_DEF( void )
ft_mem_free( FT_Memory memory,
const void *P )
@@ -211,6 +214,7 @@
{
FT_Error error = FT_Err_Ok;
+
FT_ASSERT( P != 0 );
if ( size > 0 )
@@ -250,6 +254,7 @@
{
FT_Error error = FT_Err_Ok;
+
FT_ASSERT( P != 0 );
if ( size > 0 )
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -2041,7 +2041,7 @@
if ( error )
goto Exit;
- /* ensure that 'num_blue_values' is even */
+ /* ensure that `num_blue_values' is even */
priv->num_blue_values &= ~1;
}
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -5,7 +5,7 @@
/* PostScript hinter global hinting management (body). */
/* Inspired by the new auto-hinter module. */
/* */
-/* Copyright 2001, 2002, 2003, 2004 by */
+/* Copyright 2001, 2002, 2003, 2004, 2006 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used */
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -1990,7 +1990,7 @@
if ( error )
goto Exit;
- /* ensure even-ness of 'num_blue_values' */
+ /* ensure even-ness of `num_blue_values' */
priv->num_blue_values &= ~1;
#ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT