mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(syntax): +syntax--only-check-elisp-buffers-in-projects-a signature
The previous signature was accidentally compatible with `elisp-flymake-byte-compile`, so there was no error, but still.
This commit is contained in:
@ -130,7 +130,7 @@
|
|||||||
;; HACK: Disable the emacs-lisp checker in non-project (likely untrusted)
|
;; HACK: Disable the emacs-lisp checker in non-project (likely untrusted)
|
||||||
;; buffers to mitigate potential code execution vulnerability during macro
|
;; buffers to mitigate potential code execution vulnerability during macro
|
||||||
;; expansion. See CVE-2024-53920.
|
;; expansion. See CVE-2024-53920.
|
||||||
(defadvice! +syntax--only-check-elisp-buffers-in-projects-a (fn &rest args)
|
(defadvice! +syntax--only-check-elisp-buffers-in-projects-a (&rest _)
|
||||||
"Prevent the elisp checker in non-project buffers (for CVE-2024-53920)."
|
"Prevent the elisp checker in non-project buffers (for CVE-2024-53920)."
|
||||||
:before-while #'elisp-flymake-byte-compile
|
:before-while #'elisp-flymake-byte-compile
|
||||||
(doom-project-p)))
|
(doom-project-p)))
|
||||||
|
Reference in New Issue
Block a user