commit | 0d1c306e51aeda3e51bc54fcaa1e41f34c387a4b | [log] [tgz] |
---|---|---|
author | Werner Lemberg <wl@gnu.org> | Tue May 25 11:27:56 2021 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Tue May 25 11:27:56 2021 +0200 |
tree | cfa6d028b2bce97eb4e624164220f3072ebbf64f | |
parent | 5f485339be5b2dab5dc0a7ee6c80c6ea1bd407c8 [diff] |
[psaux] Guard and trace AFM kern data allocation. Reported as https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31543 * include/freetype/internal/fttrace.h: Add 'afmparse' trace component. * src/psaux/afmparse.c (FT_COMPONENT): Define. (afm_parse_track_kern, afm_parse_kern_pairs): Protect against allocations bombs. Add tracing. (afm_parse_kern_data): Don't allow multiple kern data sections.