summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2012-01-17 16:20:02 +0900
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2012-01-17 16:20:02 +0900
commit7b02b7044321b1771b73465dd5c59b372906f8c4 (patch)
tree491db8fb9f0bd607ca961d339f43cb02e47422d8
parentc7c4d68bfb1158db1f78d68131aff5ba8973f9d6 (diff)
downloadfreetype2-7b02b7044321b1771b73465dd5c59b372906f8c4.tar.gz
[gxvalid] Fix Savannah bug #35286.
Patch submitted by anonymous reporter. * src/gxvalid/gxvcommn.c (gxv_XStateTable_subtable_setup): gxv_set_length_by_ulong_offset() must be called with 3, not 4, the number of the subtables in the state tables; classTable, stateArray, entryTable.
-rw-r--r--ChangeLog11
-rw-r--r--src/gxvalid/gxvcommn.c2
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 977a4a63b..1cc5c87c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
2012-01-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+ [gxvalid] Fix Savannah bug #35286.
+
+ Patch submitted by anonymous reporter.
+
+ * src/gxvalid/gxvcommn.c (gxv_XStateTable_subtable_setup):
+ gxv_set_length_by_ulong_offset() must be called with 3, not 4,
+ the number of the subtables in the state tables; classTable,
+ stateArray, entryTable.
+
+2012-01-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
+
[raccess] Modify for PIC build.
Based on the patch provided by Erik Dahlstrom <ed@opera.com>,
diff --git a/src/gxvalid/gxvcommn.c b/src/gxvalid/gxvcommn.c
index d3c48d4ea..0fdfba294 100644
--- a/src/gxvalid/gxvcommn.c
+++ b/src/gxvalid/gxvcommn.c
@@ -1334,7 +1334,7 @@
l[1] = stateArray_length_p;
l[2] = entryTable_length_p;
- gxv_set_length_by_ulong_offset( o, l, buff, 4, table_size, valid );
+ gxv_set_length_by_ulong_offset( o, l, buff, 3, table_size, valid );
}