summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-02 22:45:48 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-04-02 22:45:48 -0400
commitb0a4f99278aa7e14bd1d0d9e40ad28dce543fde6 (patch)
tree566ce8d946fef7428a37cf19496452f0ca0ea628
parent340767bf85b054595c42dd1c089318cb19d45899 (diff)
downloadfreetype2-b0a4f99278aa7e14bd1d0d9e40ad28dce543fde6.tar.gz
* src/sfnt/ttpost.c (load_format_25): Do not abort frame reading.
-rw-r--r--src/sfnt/ttpost.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sfnt/ttpost.c b/src/sfnt/ttpost.c
index ac9de6e24..1dfad4298 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;
}