Clamp oversized CSI numeric arguments before multiplying by 10 so libvterm does not overflow while parsing long digit sequences.
The failing linux (huge, clang, asan, 5.1) job hit UBSan in libvterm/src/parser.c when a terminal test fed a very large CSI argument and the parser evaluated 1111111111111111111 * 10 in a signed long.
This also extends the terminal test to cover both too many CSI arguments and an oversized numeric argument.
https://github.com/vim/vim/pull/19903
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()