mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibVT: Ignore DECSTBM with invalid values (#8559)
Co-authored-by: pancake <pancake@nopcode.org>
This commit is contained in:
parent
241f9f21d4
commit
390d3e9fbe
Notes:
sideshowbarker
2024-07-18 10:03:37 +09:00
Author: https://github.com/trufae 🔰 Commit: https://github.com/SerenityOS/serenity/commit/390d3e9fbec Pull-request: https://github.com/SerenityOS/serenity/pull/8559 Reviewed-by: https://github.com/alimpfard
1 changed files with 3 additions and 0 deletions
|
@ -396,6 +396,9 @@ void Terminal::DECSTBM(Parameters params)
|
|||
dbgln("Error: DECSTBM: scrolling region invalid: {}-{}", top, bottom);
|
||||
return;
|
||||
}
|
||||
if (top >= bottom) {
|
||||
return;
|
||||
}
|
||||
m_scroll_region_top = top - 1;
|
||||
m_scroll_region_bottom = bottom - 1;
|
||||
set_cursor(0, 0);
|
||||
|
|
Loading…
Reference in a new issue