From 17a0c5dfd5d94944f091c96145a5c96bba46de0a Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 28 Apr 2023 10:40:41 +0200 Subject: [PATCH] * src/cff/cffdrivr.c (cff_ps_get_font_info): Reject 'CFF2' format. --- src/cff/cffdrivr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c index 688c4c0b3..81bff1fcc 100644 --- a/src/cff/cffdrivr.c +++ b/src/cff/cffdrivr.c @@ -471,6 +471,12 @@ FT_Error error = FT_Err_Ok; + if ( face->is_cff2 ) + { + error = FT_THROW( Invalid_Argument ); + goto Fail; + } + if ( cff && !cff->font_info ) { CFF_FontRecDict dict = &cff->top_font.font_dict;