summaryrefslogtreecommitdiff
path: root/src/type42
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2014-11-21 22:19:28 +0100
committerWerner Lemberg <wl@gnu.org>2014-11-21 22:19:28 +0100
commitdd89710f0f643eb0f99a3830e0712d26c7642acd (patch)
treeb9b3dc7badbf25983a4ce8a496ac945709114ec7 /src/type42
parentb1fc00d5dc0e89432c58367477b6d9d63b6b0be9 (diff)
downloadfreetype2-dd89710f0f643eb0f99a3830e0712d26c7642acd.tar.gz
[type1, type42] Fix Savannah bug #43655.
* src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c (t42_parse_charstrings): Fix boundary testing.
Diffstat (limited to 'src/type42')
-rw-r--r--src/type42/t42parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/type42/t42parse.c b/src/type42/t42parse.c
index 9b668889b..a60e216f9 100644
--- a/src/type42/t42parse.c
+++ b/src/type42/t42parse.c
@@ -858,7 +858,7 @@
FT_PtrDist len;
- if ( cur + 1 >= limit )
+ if ( cur + 2 >= limit )
{
FT_ERROR(( "t42_parse_charstrings: out of bounds\n" ));
error = FT_THROW( Invalid_File_Format );