GNU bug report logs - #68954
[PATCH] Crasher in treesit_traverse_get_predicate

Previous Next

Package: emacs;

Reported by: Dominique Quatravaux <dominique <at> quatravaux.org>

Date: Tue, 6 Feb 2024 17:09:01 UTC

Severity: normal

Tags: patch

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dominique Quatravaux <dominique <at> quatravaux.org>
To: 68954 <at> debbugs.gnu.org
Subject: bug#68954: [PATCH] Crasher in treesit_traverse_get_predicate
Date: Tue, 6 Feb 2024 18:08:18 +0100
[Message part 1 (text/plain, inline)]
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 <at> quatravaux.org
[Message part 2 (text/html, inline)]
[treesit.diff (application/octet-stream, attachment)]

This bug report was last modified 1 year and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.