Skip DCS escape sequences if buffer is full ref. #190

This commit is contained in:
Bakkeby 2026-02-14 21:09:51 +01:00
parent 9edb8d86fb
commit cc852e9a86

5
st.c
View file

@ -3466,6 +3466,11 @@ check_control_code:
return;
#if SIXEL_PATCH
} else if (term.esc & ESC_DCS) {
/* Skip if DCS escape sequence buffer is full */
if (csiescseq.len >= sizeof(csiescseq.buf) - 1) {
return;
}
csiescseq.buf[csiescseq.len++] = u;
if (BETWEEN(u, 0x40, 0x7E)
|| csiescseq.len >= \