[Pkg-rust-maintainers] Bug#1052020: rust-tree-sitter: enters infinite loop in certain scenarios

Jonas Smedegaard dr at jones.dk
Sat Sep 16 08:07:24 BST 2023


Source: rust-tree-sitter
Version: 0.20.10-1
Severity: important
Tags: patch upstream

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

- From accepted MR https://github.com/tree-sitter/tree-sitter/pull/2429:
> `earlier_node` must be reset when backtracking up the tree or else
> `ts_node__prev_child` may loop infinitely on a subtree which contains
> zero-width tokens.

Please consider cherry-picking that MR until a new upstream release
comes out.

 - Jonas
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmUFVCkACgkQLHwxRsGg
ASH+rBAAnzuMEpvW8TeWYPuHpngzkbkHBBMzlQXyDas3flXwyyapV9bC5zkd0X9g
O59ogTRlMyWG3J3OKT+tOQmIfBsrn+JCtpgOIYaxu7AOUEZvIRKKWSKSClq81Yfg
P8fX04mSUu/n7MEAd1XrNuJELqVTrtBdajK3ByOJzfXIkbrE+DdiPsuLanOrdyVJ
Gf3fe6u1KSPAQh5fWr7JQQoiPVLeu6pSYNHCT4kTC8ymHH/v5ChLuDRtZ0cm1/FJ
ya7lWXEFMy+6QDALeDhtZJNVxprlT2eQut+DTu39wJC5CqbTjGzSaU7HLM8EVxHo
CSIoAXZeWH53rAwXfDJR5+7/qunnC1vN0RZP+/BVYJ0WWFfxhK4IWLF3DIdeLjNI
h+KbkiA9wqBVfhKWDgJUmH7mlvf8BO+jRqD8OSRemutRND5hUbASgLlJsUBIVANt
j2Gxl3ddgqxy+C83Gm8JgaPsCoMLBpC7jYHRWndA95OJ9Ce574hDOjFnMgxw4KKC
F4BJJw8a5S8CjAP68gcaeA4PfYcCsKsj0twv3ooiFqP+hEqqDY9Wl4s7SDRvsF4t
uzcOie2Ho0vmekKHzM5g/3+jkBp6pIkOlFKMqGXnivBdUdhzbjQR0wEdWuQwjk15
HLt3liZfnRkrFT0f9TDmmZVs6WxhHJiR9wIvDzbwRUAxqaHAYqU=
=a5Xb
-----END PGP SIGNATURE-----



More information about the Pkg-rust-maintainers mailing list