diff options
author | Philipp Stephani <phst@google.com> | 2020-11-09 22:14:39 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2020-11-09 22:14:39 +0100 |
commit | 109eb1e7e29455418b40ca00bf5dad3e61e5fc78 (patch) | |
tree | 14f6331054999932a0e76e0b0200c35321fb8ea9 /lisp/emacs-lisp/smie.el | |
parent | 78e1646bf7bde8f00c196319f4803e98460d506a (diff) | |
download | emacs-109eb1e7e29455418b40ca00bf5dad3e61e5fc78.tar.gz emacs-109eb1e7e29455418b40ca00bf5dad3e61e5fc78.tar.bz2 emacs-109eb1e7e29455418b40ca00bf5dad3e61e5fc78.zip |
Fix undefined behavior when fetching glyphs from the display vector.
You can trigger this rather obscure bug by enabling selective display
if the second glyph in its display vector has an invalid face. For
example, evaluate
(set-display-table-slot standard-display-table
'selective-display [?A (?B . invalid)])
and then enable selective display.
* src/xdisp.c (next_element_from_display_vector): Check whether next
glyph code is valid before accessing it.
Diffstat (limited to 'lisp/emacs-lisp/smie.el')
0 files changed, 0 insertions, 0 deletions