]> git.eshelyaron.com Git - emacs.git/commit
Avoid infloops in font_open_entity
authorEli Zaretskii <eliz@gnu.org>
Sat, 5 May 2018 08:52:29 +0000 (11:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 5 May 2018 08:52:29 +0000 (11:52 +0300)
commite2879c1f837059335af89022b2a9ac9bc861e96d
tree2ed4a8772ce6efcbbd4412740df71e98d98031a3
parentbbe2cadc544e63e9378350621887f8fb9bbcc236
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)
src/font.c