summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/ewoc.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2020-11-09 22:14:39 +0100
committerPhilipp Stephani <phst@google.com>2020-11-09 22:14:39 +0100
commit109eb1e7e29455418b40ca00bf5dad3e61e5fc78 (patch)
tree14f6331054999932a0e76e0b0200c35321fb8ea9 /lisp/emacs-lisp/ewoc.el
parent78e1646bf7bde8f00c196319f4803e98460d506a (diff)
downloademacs-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/ewoc.el')
0 files changed, 0 insertions, 0 deletions