]> git.eshelyaron.com Git - emacs.git/commit
Avoid crashes in PGTK build due to signal in 'note_mouse_highlight'
authorEli Zaretskii <eliz@gnu.org>
Sun, 18 Dec 2022 08:29:34 +0000 (10:29 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 18 Dec 2022 08:29:34 +0000 (10:29 +0200)
commit660e941235d0e4e8490d53ad06cdb1e5699634fa
treefbada1ae2efc6ee21889fee1f54e11c8b8482d1b
parent0fc5fb2d054c2de17a3c2a3db9110312fa366cf9
Avoid crashes in PGTK build due to signal in 'note_mouse_highlight'

* src/xdisp.c (string_buffer_position): Make sure the TO argument
of 'string_buffer_position_lim' is always inside [BEGV..ZV].
Otherwise 'string_buffer_position_lim' might call
'get-char-property' and friends with invalid position, which will
just signal an error and do nothing useful.  (Bug#60144)
src/xdisp.c