ref: 1f4e5bcb19eaa9170466c8d845edfd11aba54937
parent: c912690d22ab16d772328396c27c47075924b012
author: Werner Lemberg <wl@gnu.org>
date: Thu Oct 3 17:07:16 EDT 2019
* src/sfnt/sfwoff2 (reconstruct_font): Fix reallocation. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17966
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-10-03 Werner Lemberg <wl@gnu.org>
+
+ * src/sfnt/sfwoff2 (reconstruct_font): Fix reallocation.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17966
+
2019-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/base/ftstroke.c (ft_stroker_inside): Speed up.
--- a/src/sfnt/sfwoff2.c
+++ b/src/sfnt/sfwoff2.c
@@ -1706,6 +1706,9 @@
if ( !error )
error = FT_THROW( Invalid_Table );
+ /* Set pointer of sfnt stream to its correct value. */
+ *sfnt_bytes = sfnt;
+
FT_FREE( table_entry );
FT_Stream_Close( stream );
FT_FREE( stream );