LibVT: Fix integer overflow when parsing long OSC sequences

We were storing indices into OSC escape sequences as `u8`s, which
overflow at a length of just 256 characters. This caused a crash when
parsing OSC 8 hyperlinks pointing to long filenames.
This commit is contained in:
Daniel Bertalan 2023-03-17 17:41:53 +01:00 committed by Linus Groh
parent 5d7a85bc37
commit e3195b060d
Notes: sideshowbarker 2024-07-16 23:54:15 +09:00

View File

@ -69,7 +69,7 @@ private:
Vector<unsigned, 4> m_param_vector;
unsigned m_param { 0 };
Vector<u8> m_osc_parameter_indexes;
Vector<size_t> m_osc_parameter_indexes;
Vector<u8, 16> m_osc_raw;
bool m_ignoring { false };