bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68954: [PATCH] Crasher in treesit_traverse_get_predicate


From: Dominique Quatravaux
Subject: bug#68954: [PATCH] Crasher in treesit_traverse_get_predicate
Date: Tue, 6 Feb 2024 18:08:18 +0100

Because nothing guarantees or enforces that either Vtreesit_thing_settings, or the cdrs of its elements, are cons cells, it is easy to construct values for `treesit-thing-settings' that make Emacs crash (e.g., when calling `prog-fill-reindent-defun' from any tree-sitter enabled mode).

The attached patch fixes that.

--
 Dominique Quatravaux
 dominique@quatravaux.org

Attachment: treesit.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]