mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
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:
parent
5d7a85bc37
commit
e3195b060d
Notes:
sideshowbarker
2024-07-16 23:54:15 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/e3195b060d Pull-request: https://github.com/SerenityOS/serenity/pull/17897
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user