diff options
author | pancake <pancake@nowsecure.com> | 2021-07-08 20:11:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 22:41:55 +0430 |
commit | 390d3e9fbec6660c108805b282455fafc5a66606 (patch) | |
tree | 8ed8142e5413bbca97aad8277a38479c027e51cd /Userland | |
parent | 241f9f21d471097f4e6229989f818527dae52f6e (diff) | |
download | serenity-390d3e9fbec6660c108805b282455fafc5a66606.zip |
LibVT: Ignore DECSTBM with invalid values (#8559)
Co-authored-by: pancake <pancake@nopcode.org>
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibVT/Terminal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibVT/Terminal.cpp b/Userland/Libraries/LibVT/Terminal.cpp index e21635f8d9..ce1d054c9a 100644 --- a/Userland/Libraries/LibVT/Terminal.cpp +++ b/Userland/Libraries/LibVT/Terminal.cpp @@ -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); |