diff options
Diffstat (limited to 'src/type42/t42parse.c')
-rw-r--r-- | src/type42/t42parse.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/type42/t42parse.c b/src/type42/t42parse.c index 009121fc8..edd27a850 100644 --- a/src/type42/t42parse.c +++ b/src/type42/t42parse.c @@ -284,6 +284,13 @@ matrix->xy = temp[2]; matrix->yy = temp[3]; + if ( !FT_Matrix_Check( matrix ) ) + { + FT_ERROR(( "t42_parse_font_matrix: invalid font matrix\n" )); + parser->root.error = FT_THROW( Invalid_File_Format ); + return; + } + /* note that the offsets must be expressed in integer font units */ offset->x = temp[4] >> 16; offset->y = temp[5] >> 16; |