diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-05-05 11:52:29 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-05-05 11:52:29 +0300 |
commit | e2879c1f837059335af89022b2a9ac9bc861e96d (patch) | |
tree | 2ed4a8772ce6efcbbd4412740df71e98d98031a3 /lisp/files-x.el | |
parent | bbe2cadc544e63e9378350621887f8fb9bbcc236 (diff) | |
download | emacs-e2879c1f837059335af89022b2a9ac9bc861e96d.tar.gz emacs-e2879c1f837059335af89022b2a9ac9bc861e96d.tar.bz2 emacs-e2879c1f837059335af89022b2a9ac9bc861e96d.zip |
Avoid infloops in font_open_entity
* src/font.c (font_open_entity): Fail after 15 iterations through
the loop that looks for a font whose average_width and height are
both positive. This avoids infinite loops for fonts that, e.g.,
report average_width of zero for any possible size we try.
(Bug#31316)
Diffstat (limited to 'lisp/files-x.el')
0 files changed, 0 insertions, 0 deletions