Commit 56a4353a authored by deuce's avatar deuce
Browse files

Fix out-of-bounds read in do_backtab().

parent bf35982e
......@@ -2153,7 +2153,7 @@ do_backtab(struct cterminal *cterm)
CURR_XY(&cx, &cy);
ox = cx;
for (i = cterm->tab_count; i >= 0; i--) {
for (i = cterm->tab_count - 1; i >= 0; i--) {
if (cterm->tabs[i] < cx) {
cx = cterm->tabs[i];
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment