commit | 66630d882cd6e0653acf4f86b65b6b6070caff88 | [log] [tgz] |
---|---|---|
author | Alexei Podtelezhnikov <apodtele@gmail.com> | Mon May 03 22:40:16 2021 -0400 |
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | Mon May 03 22:40:16 2021 -0400 |
tree | 98dfaf516bae88322dae32873335b93268ecb182 | |
parent | ec95f9c9212e9bf9371471f845903bb0e895807d [diff] |
[sfnt] Streamline POST format 2.0 handing. To reduce memory allocations, we read an entire Pascal-string buffer and convert it to a C-string buffer. We also reject tables with Postscript glyph names exceeding 63 bytes. * src/sfnt/ttpost.c (load_format20): Implement it. (load_post_names): Check the minimal POST table size. (load_format25, tt_face_free_ps_names): Updated accordingly.