formatting, copyright years
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
diff --git a/ChangeLog b/ChangeLog
index 7ffeaa4..e1b7fd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,19 +6,22 @@
2006-02-27 David Turner <david@freetype.org>
- * 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 <b90201047@ntu.edu.tw>
@@ -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 <b90201047@ntu.edu.tw>
- * 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
diff --git a/src/base/ftutil.c b/src/base/ftutil.c
index ddddd34..c02f25b 100644
--- 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 )
diff --git a/src/cff/cffload.c b/src/cff/cffload.c
index e576c3c..666ccfe 100644
--- 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;
}
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index c02dc0b..8a69aa1 100644
--- 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 */
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 66c89a6..219563a 100644
--- 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