diff options
author | Eli Zaretskii <eliz@gnu.org> | 2019-02-13 17:39:31 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-02-13 17:43:55 +0200 |
commit | 6d89120b156576ca24e03472563f5ea0f01313f8 (patch) | |
tree | 89cef46e498e3a510eac9a9324c3f69d9951fbdf /test/lisp/emacs-lisp | |
parent | 3f4b8e9a299f88a8ea11c0ea6a281a34852e541a (diff) | |
download | emacs-6d89120b156576ca24e03472563f5ea0f01313f8.tar.gz emacs-6d89120b156576ca24e03472563f5ea0f01313f8.tar.bz2 emacs-6d89120b156576ca24e03472563f5ea0f01313f8.zip |
Avoid crashes upon C-g in nested invocations of 'read_char'
* src/keyboard.c (read_char, read_event_from_main_queue):
Ensure the global value of getcjmp is restored when the stack
is unwound by the likes of 'throw', by calling
record_unwind_protect_ptr instead of restoring the value
manually. (Bug#34394)
(restore_getcjmp): Argument is now 'void *', to match the
signature of record_unwind_protect_ptr.
(cherry picked from commit 10527fca66e39d7067986904161fa33741abcd26)
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions