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

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17966
This commit is contained in:
Werner Lemberg 2019-10-03 21:07:16 +02:00
parent c912690d22
commit 1f4e5bcb19
2 changed files with 11 additions and 0 deletions

View File

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

View File

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