]> git.eshelyaron.com Git - emacs.git/commit
Don’t hard-loop on cycles in ‘read’ etc.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Aug 2019 00:18:33 +0000 (17:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Aug 2019 00:21:06 +0000 (17:21 -0700)
commit951ea375d52891f79b89794fbb9dca86ab8cd5a8
tree459efbdb4329bd8e5926f5f21b1e170505443bce
parent11de1155f81fdac515b5465d31634c7b91a4d42a
Don’t hard-loop on cycles in ‘read’ etc.

Problem for ‘read’ reported by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html
* src/fns.c (Frequire): Protect against circular current-load-list.
* src/lread.c (Fget_load_suffixes):
Protect against circular load-suffixes or load-file-rep-suffixes.
(Fload): Protect against circular loads-in-progress.
(openp): Protect against circular PATH and SUFFIXES.
(build_load_history): Protect against circular load-history or
current-load-list.
(readevalloop_eager_expand_eval): Protect against circular SUBFORMS.
(read1): Protect against circular data.
* test/src/lread-tests.el (lread-circular-hash): New test.
src/fns.c
src/lread.c
test/src/lread-tests.el