Skip DCS escape sequences if buffer is full ref. #190
This commit is contained in:
parent
9edb8d86fb
commit
cc852e9a86
1 changed files with 5 additions and 0 deletions
5
st.c
5
st.c
|
|
@ -3466,6 +3466,11 @@ check_control_code:
|
||||||
return;
|
return;
|
||||||
#if SIXEL_PATCH
|
#if SIXEL_PATCH
|
||||||
} else if (term.esc & ESC_DCS) {
|
} 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;
|
csiescseq.buf[csiescseq.len++] = u;
|
||||||
if (BETWEEN(u, 0x40, 0x7E)
|
if (BETWEEN(u, 0x40, 0x7E)
|
||||||
|| csiescseq.len >= \
|
|| csiescseq.len >= \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue