Commit b0a4f99278aa7e14bd1d0d9e40ad28dce543fde6

Alexei Podtelezhnikov 2023-04-02T22:45:48

* src/sfnt/ttpost.c (load_format_25): Do not abort frame reading.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index ac9de6e..1dfad42 100644
--- a/src/sfnt/ttpost.c
+++ b/src/sfnt/ttpost.c
@@ -299,10 +299,7 @@
 
 
       if ( idx < 0 || idx > 257 )
-      {
-        error = FT_THROW( Invalid_File_Format );
-        goto Fail;
-      }
+        idx = 0;
 
       glyph_indices[n] = (FT_UShort)idx;
     }