ctags icon indicating copy to clipboard operation
ctags copied to clipboard

TOML: infinite loop

Open masatake opened this issue 1 year ago • 3 comments

$ curl -LO https://github.com/BurntSushi/toml/raw/refs/heads/master/internal/toml-test/tests/invalid/encoding/bad-utf8-at-end.toml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   242  100   242    0     0   1901      0 --:--:-- --:--:-- --:--:--  1901
$ timeout --verbose 10 ~/bin/ctags -o - ./bad-utf8-at-end.toml 
timeout: sending signal TERM to command ‘/home/yamato/bin/ctags’
$

masatake avatar Oct 08 '24 12:10 masatake

Putting --exclude=bad-utf8-at-end.toml to your .ctags.d/foo.ctags is a workaround.

masatake avatar Oct 08 '24 12:10 masatake

The parser is broken. I replaced | in ABNF with / in PEG without enough consideration. Things are not so simple.

I will disable TOML and Cargo subparser in the next release.

masatake avatar May 08 '25 17:05 masatake

TOML and Cargo parsers are disabled in v6.2.0.

masatake avatar May 11 '25 16:05 masatake