aboutsummaryrefslogtreecommitdiff
path: root/freetype/src/psaux/t1decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'freetype/src/psaux/t1decode.c')
-rw-r--r--freetype/src/psaux/t1decode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/freetype/src/psaux/t1decode.c b/freetype/src/psaux/t1decode.c
index a8abc8731..6fa0a6a29 100644
--- a/freetype/src/psaux/t1decode.c
+++ b/freetype/src/psaux/t1decode.c
@@ -764,6 +764,13 @@
if ( arg_cnt != 0 )
goto Unexpected_OtherSubr;
+ if ( decoder->flex_state == 0 )
+ {
+ FT_ERROR(( "t1_decoder_parse_charstrings:"
+ " missing flex start\n" ));
+ goto Syntax_Error;
+ }
+
/* note that we should not add a point for index 0; */
/* this will move our current position to the flex */
/* point without adding any point to the outline */