diff options
Diffstat (limited to 'src/psaux')
-rw-r--r-- | src/psaux/psobjs.c | 4 | ||||
-rw-r--r-- | src/psaux/t1decode.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c index 5b160ce..a28b5fc 100644 --- a/src/psaux/psobjs.c +++ b/src/psaux/psobjs.c @@ -185,8 +185,8 @@ /* grow the base block if needed */ if ( table->cursor + length > table->capacity ) { - FT_Error error; - FT_Offset new_size = table->capacity; + FT_Error error; + FT_Offset new_size = table->capacity; FT_PtrDist in_offset; diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c index 90874f0..b3ccbdd 100644 --- a/src/psaux/t1decode.c +++ b/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 */ |