diff options
| author | Eli Zaretskii | 2024-08-17 21:35:08 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-17 21:35:08 +0300 |
| commit | 9e7c2d3816ec3e1247b1bd3cfcafc60a84b0f5ec (patch) | |
| tree | 378bb00611fa10ba4d3f88df9685fd034291bbf2 /src | |
| parent | d6726e6dfc7f0a5133a0489bcdc21f10844692f2 (diff) | |
| download | emacs-9e7c2d3816ec3e1247b1bd3cfcafc60a84b0f5ec.tar.gz emacs-9e7c2d3816ec3e1247b1bd3cfcafc60a84b0f5ec.zip | |
Avoid rare crashes due to clobbering of input events
* src/keyboard.c (read_char): Declare C 'volatile', to prevent
clobbering it by setjmp/longjmp. Do not merge to master.
(Bug#71744)
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index c75e80d2a05..e7b0af9f63c 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -2522,7 +2522,7 @@ read_char (int commandflag, Lisp_Object map, | |||
| 2522 | Lisp_Object prev_event, | 2522 | Lisp_Object prev_event, |
| 2523 | bool *used_mouse_menu, struct timespec *end_time) | 2523 | bool *used_mouse_menu, struct timespec *end_time) |
| 2524 | { | 2524 | { |
| 2525 | Lisp_Object c; | 2525 | volatile Lisp_Object c; |
| 2526 | sys_jmp_buf local_getcjmp; | 2526 | sys_jmp_buf local_getcjmp; |
| 2527 | sys_jmp_buf save_jump; | 2527 | sys_jmp_buf save_jump; |
| 2528 | Lisp_Object tem, save; | 2528 | Lisp_Object tem, save; |