diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-10-08 09:49:20 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-10-08 09:49:20 -0400 |
commit | c7804ac4018fb03787f291d7ef1739b34914d930 (patch) | |
tree | bad7b219d2eadb8a3d7e74dfeb2dc8376296f5af /lisp/emacs-lisp | |
parent | d340a979dbbd6150a3af4783cf8b3b65368bbdad (diff) | |
download | emacs-c7804ac4018fb03787f291d7ef1739b34914d930.tar.gz emacs-c7804ac4018fb03787f291d7ef1739b34914d930.tar.bz2 emacs-c7804ac4018fb03787f291d7ef1739b34914d930.zip |
* src/ftcrfont.c (ftcrfont_open): Initialize the `max_width` field
On a 32bit build, Emacs can otherwise crash with a !FIXNUM_OVERFLOW_P
assertion in `Ffont_info` by simply doing `emacs -Q` and then `C-s`.
* src/font.c: Try and detect uninitialized `max_width` fields.
(font_make_object): Set max_width to a silly value.
(Ffont_info): Check the value is not silly any more.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions