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

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=18046
GSoC-2020-greg
Werner Lemberg 5 years ago
parent 0fcf486e0d
commit 1167bff3e9
  1. 8
      ChangeLog
  2. 3
      src/sfnt/sfwoff2.c

@ -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.

@ -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 );

Loading…
Cancel
Save