commit | 966ff5a55cbe46e9ae4658e6e0e7ecb1e6e82b07 | [log] [tgz] |
---|---|---|
author | Werner Lemberg <wl@gnu.org> | Fri Apr 28 15:25:20 2023 +0200 |
committer | Werner Lemberg <wl@gnu.org> | Fri Apr 28 15:25:20 2023 +0200 |
tree | 8068231cff3b6b492a8a9bfca10eb44937258bbe | |
parent | 17a0c5dfd5d94944f091c96145a5c96bba46de0a [diff] |
* src/cff/cffdrivr/c (cff_get_ps_name): Avoid unnecessary crash. The situation can happen if `FT_New_Face` (or one of its siblings) is called with a negative index to get the number of contained faces, followed immediately by a call to `FT_Get_Postscript_Name`. While this is not a valid use of the FreeType library there is no need for a crash. Fixes #1219.