mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-21 20:28:06 +00:00
Fix an infinite loop in the UTF-8 decoding code with invalid input
This commit is contained in:
parent
de46c260b1
commit
a9efe7036c
1 changed files with 1 additions and 0 deletions
|
|
@ -657,6 +657,7 @@ _parse_bytes(Screen *screen, uint8_t *buf, Py_ssize_t len, PyObject DUMP_UNUSED
|
|||
if (prev != UTF8_ACCEPT) i--;
|
||||
break;
|
||||
}
|
||||
prev = screen->utf8_state;
|
||||
}
|
||||
}
|
||||
FLUSH_DRAW;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue