diff options
author | markd <markd@pkgsrc.org> | 2008-06-03 22:17:00 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2008-06-03 22:17:00 +0000 |
commit | 288f4285a71ad704a43525efb35b4b33a778f142 (patch) | |
tree | 6b2d9a8123230cd44536f44d22446901ea658db8 /editors/emacs21/patches | |
parent | 537754f47f86ac0a5efd6d4c9a4e01155ac885e5 (diff) | |
download | pkgsrc-288f4285a71ad704a43525efb35b4b33a778f142.tar.gz |
Fix for CVE-2008-2142, automatically loading and executing .flc files.
Diffstat (limited to 'editors/emacs21/patches')
-rw-r--r-- | editors/emacs21/patches/patch-aw | 33 | ||||
-rw-r--r-- | editors/emacs21/patches/patch-ay | 13 |
2 files changed, 46 insertions, 0 deletions
diff --git a/editors/emacs21/patches/patch-aw b/editors/emacs21/patches/patch-aw new file mode 100644 index 00000000000..3c66538831b --- /dev/null +++ b/editors/emacs21/patches/patch-aw @@ -0,0 +1,33 @@ +$NetBSD: patch-aw,v 1.1 2008/06/03 22:17:00 markd Exp $ + +--- lisp/fast-lock.el.orig 2001-07-16 04:15:34.000000000 +1200 ++++ lisp/fast-lock.el +@@ -278,7 +278,7 @@ for buffers in Rmail mode, and size is i + (integer :tag "size"))))) + :group 'fast-lock) + +-(defcustom fast-lock-cache-directories '("." "~/.emacs-flc") ++(defcustom fast-lock-cache-directories '("~/.emacs-flc") + ; - `internal', keep each file's Font Lock cache file in the same file. + ; - `external', keep each file's Font Lock cache file in the same directory. + "*Directories in which Font Lock cache files are saved and read. +@@ -296,13 +296,18 @@ For example: + ((\"^/your/true/home/directory/\" . \".\") \"~/.emacs-flc\") + + would cause a file's current directory to be used if the file is under your +-home directory hierarchy, or otherwise the absolute directory `~/.emacs-flc'." ++home directory hierarchy, or otherwise the absolute directory `~/.emacs-flc'. ++For security reasons, it is not advisable to use the file's current directory ++to avoid the possibility of using the cache of another user." + :type '(repeat (radio (directory :tag "directory") + (cons :tag "Matching" + (regexp :tag "regexp") + (directory :tag "directory")))) + :group 'fast-lock) + ++;;;###autoload ++(put 'fast-lock-cache-directories 'risky-local-variable t) ++ + (defcustom fast-lock-save-events '(kill-buffer kill-emacs) + "*Events under which caches will be saved. + Valid events are `save-buffer', `kill-buffer' and `kill-emacs'. diff --git a/editors/emacs21/patches/patch-ay b/editors/emacs21/patches/patch-ay new file mode 100644 index 00000000000..887e4d92538 --- /dev/null +++ b/editors/emacs21/patches/patch-ay @@ -0,0 +1,13 @@ +$NetBSD: patch-ay,v 1.1 2008/06/03 22:17:00 markd Exp $ + +--- lisp/loaddefs.el.orig 2003-03-19 02:36:18.000000000 +1200 ++++ lisp/loaddefs.el +@@ -6963,6 +6963,8 @@ of colors that the current display can h + ;;;;;; "fast-lock.el" (15611 31344)) + ;;; Generated autoloads from fast-lock.el + ++(put (quote fast-lock-cache-directories) (quote risky-local-variable) t) ++ + (autoload (quote fast-lock-mode) "fast-lock" "\ + Toggle Fast Lock mode. + With arg, turn Fast Lock mode on if and only if arg is positive and the buffer |