commit | 12696dcf9bf614fef816bb768ed7c21b8eeee959 | [log] [tgz] |
---|---|---|
author | Werner Lemberg <wl@gnu.org> | Mon Sep 30 07:27:55 2019 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Mon Sep 30 07:27:55 2019 +0200 |
tree | 4257415006bf8936ae7f0cb303f9bed5cde76a8a | |
parent | ba06adafcdd35a34af6d9be63800c2f55dd03a75 [diff] |
[woff2] Reject fonts without `head' table. Also fix memory deallocation in case of error. `head' problem reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17820 * src/sfnt/sfwoff2.c (reconstruct_glyf): Don't use `stream_close'. Abort if `head_table' is NULL. Don't free `transformed_buf' in case of error. (woff2_open_font): Don't set `uncompressed_buf' to NULL.