From a8c243514c9e2349f8aaabcb14da2d0a5cddceea Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 18 Jul 2012 10:38:37 +0200 Subject: [PATCH] Fix Savannah bug #36829. * src/type1/t1load.c (parse_encoding): Check cursor position after call to T1_Skip_PS_Token. --- ChangeLog | 7 +++++++ src/type1/t1load.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 72f3419e0..6b09d2eb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-07-13 Werner Lemberg + + Fix Savannah bug #36829. + + * src/type1/t1load.c (parse_encoding): Check cursor position after + call to T1_Skip_PS_Token. + 2012-07-11 Alexei Podtelezhnikov [ftstroke] Fix uninitialized return value. diff --git a/src/type1/t1load.c b/src/type1/t1load.c index 7313fef16..c830f1b06 100644 --- a/src/type1/t1load.c +++ b/src/type1/t1load.c @@ -1293,6 +1293,8 @@ parser->root.cursor = cur; T1_Skip_PS_Token( parser ); + if ( parser->root.cursor >= limit ) + return; if ( parser->root.error ) return;