summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2010-09-20 01:26:56 +0900
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2010-09-20 01:26:56 +0900
commita0f43f207b68520369eba4e84b02c5f69f0f542b (patch)
tree60a6234b1032b8a09f8ad121f83665ede93ce4df
parentb3e1954d167f485099c71f5060520aabb00519c6 (diff)
downloadfreetype2-a0f43f207b68520369eba4e84b02c5f69f0f542b.tar.gz
[cff] Make trace message in cff_charset_load() verbose.
See Savannah bug #30975. * src/cff/cffload.c (cff_charset_load): Report the original `nleft' and truncated `nleft'.
-rw-r--r--ChangeLog8
-rw-r--r--src/cff/cffload.c3
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a982efb53..ea1daa23a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+ [cff] Make trace message in cff_charset_load() verbose.
+ See Savannah bug #30975.
+
+ * src/cff/cffload.c (cff_charset_load): Report the original
+ `nleft' and truncated `nleft'.
+
+2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
[cff] Correct `max_cid' from CID array length to max CID.
See Savannah bug #30975.
diff --git a/src/cff/cffload.c b/src/cff/cffload.c
index 27ee094be..6a1842fd3 100644
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -916,7 +916,8 @@
/* try to rescue some of the SIDs if `nleft' is too large */
if ( glyph_sid > 0xFFFFL - nleft )
{
- FT_ERROR(( "cff_charset_load: invalid SID range trimmed\n" ));
+ FT_ERROR(( "cff_charset_load: invalid SID range trimmed"
+ " nleft=%d -> %d\n", nleft, 0xFFFFL - glyph_sid ));
nleft = ( FT_UInt )( 0xFFFFL - glyph_sid );
}