diff options
author | Eli Zaretskii <eliz@gnu.org> | 2018-05-05 11:52:29 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2018-06-02 12:30:30 +0300 |
commit | e96245a5497ecbc6c58740a6b6bd1f848a44b26c (patch) | |
tree | 8f132637a478bf3c50402d92355d1eb6089307c7 /lisp/emacs-lisp/lisp.el | |
parent | 3a06e7245703f58aaee5c50cfaa410458614efa0 (diff) | |
download | emacs-e96245a5497ecbc6c58740a6b6bd1f848a44b26c.tar.gz emacs-e96245a5497ecbc6c58740a6b6bd1f848a44b26c.tar.bz2 emacs-e96245a5497ecbc6c58740a6b6bd1f848a44b26c.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)
(cherry picked from commit e2879c1f837059335af89022b2a9ac9bc861e96d)
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions