Subject: bug#59426: 29.0.50; [tree-sitter] Some functions exceed maximum recursion limit

From: Mattias Engdegård <[email-masked]>
Date: Wed, 23 Nov 2022 11:40:02 +0100

23 nov. 2022 kl. 00.19 skrev Yuan Fu <[email-masked]>:

> It’s a machine generated file with syntax that tree-sitter-c can’t handle very well. The file is from bug#45248.

If you mean https://gitlab.com/wireshark/wireshark/-/raw/master/epan/dissectors/packet-rrc.c, then the parse tree would certainly be wide but not at all tall as far as I can tell. There is a fairly long array initialiser in there, but I've seen worse -- and it shouldn't be treated recursively, should it?