diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-30 14:17:40 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-10-30 14:43:14 -0700 |
commit | 40ae02ff50a8f05660a7f9f234320875b6358c9d (patch) | |
tree | c5d4a135409445f1886cda3001bfa41472f8b3fb /lisp/emacs-lisp/lisp-mode.el | |
parent | 94b8153eaa78e376e6ed8c2b04602edf3dadc007 (diff) | |
download | emacs-40ae02ff50a8f05660a7f9f234320875b6358c9d.tar.gz emacs-40ae02ff50a8f05660a7f9f234320875b6358c9d.tar.bz2 emacs-40ae02ff50a8f05660a7f9f234320875b6358c9d.zip |
Fix fileio.c infloops on circular lists
Fix infinite loops in fileio.c when a circular list is the
value of after_insert_file_functions,
buffer-auto-save-file-format, buffer-file-format, or
write-region-annotate-functions.
* src/fileio.c (Finsert_file_contents, build_annotations):
Use FOR_EACH_TAIL to avoid infloop on circular lists.
(build_annotations): Use an EMACS_INT, not an int, to count
nesting level.
* test/src/fileio-tests.el:
(fileio-tests--circular-after-insert-file-functions): New test.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
0 files changed, 0 insertions, 0 deletions