* src/sfnt/sfwoff2 (reconstruct_glyf): Fix reallocation.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18046
This commit is contained in:
Werner Lemberg 2019-10-06 23:22:34 +02:00
parent 0fcf486e0d
commit 1167bff3e9
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2019-10-06 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfwoff2 (reconstruct_glyf): Fix reallocation.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18046
2019-10-06 Werner Lemberg <wl@gnu.org>
Improve memory debugging.

View File

@ -1235,6 +1235,9 @@
if ( !error )
error = FT_THROW( Invalid_Table );
/* Set pointer `sfnt_bytes' to its correct value. */
*sfnt_bytes = sfnt;
FT_FREE( substreams );
FT_FREE( loca_values );
FT_FREE( n_points_arr );