diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-30 14:24:29 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-30 14:43:14 -0700 |
commit | 581601e650cc8bdcf3ed83c6ae36744601c12ce9 (patch) | |
tree | 37cc3bd330820866ff9d3aa2bf37e2fd84725739 /test/src | |
parent | 40ae02ff50a8f05660a7f9f234320875b6358c9d (diff) | |
download | emacs-581601e650cc8bdcf3ed83c6ae36744601c12ce9.tar.gz |
Fix keyboard.c infloops on circular lists
Fix infinite loops in keyboard.c when a circular list is
found in a hook, or in help-event-list, or in the argument
of event-convert-list, or in a keymap where a Lucid event
type list is expected, or in a menu or tab spec.
* src/keyboard.c (safe_run_hooks_error, menu_bar_items)
(parse_menu_item, parse_tab_bar_item, parse_tool_bar_item):
Use FOR_EACH_TAIL to avoid infloop on circular lists.
(help_char_p, Fevent_convert_list, lucid_event_type_list_p):
Use FOR_EACH_TAIL_SAFE to avoid infloop on circular lists,
when the action is idempotent so a circular list can be
treated as a noncircular one.
Diffstat (limited to 'test/src')
0 files changed, 0 insertions, 0 deletions