Commit 17a0c5dfd5d94944f091c96145a5c96bba46de0a

Werner Lemberg 2023-04-28T10:40:41

* src/cff/cffdrivr.c (cff_ps_get_font_info): Reject 'CFF2' format.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c
index 688c4c0..81bff1f 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;