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:
Henrik Lissner
2025-04-06 15:21:10 -04:00
parent a70ce220c0
commit 20ad20f8eb

View File

@ -130,7 +130,7 @@
;; HACK: Disable the emacs-lisp checker in non-project (likely untrusted)
;; buffers to mitigate potential code execution vulnerability during macro
;; 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)."
:before-while #'elisp-flymake-byte-compile
(doom-project-p)))