Skip to content
Snippets Groups Projects
Commit 74d1c362 authored by deuce's avatar deuce
Browse files

Fix out-of-bounds write in sequence parsing.

parent c88b8a3a
No related branches found
No related tags found
No related merge requests found
......@@ -1122,7 +1122,7 @@ static void seq_default(struct esc_seq *seq, int index, uint64_t val)
if (np == NULL)
return;
seq->param_int = np;
for (; seq->param_count <= index+1; seq->param_count++) {
for (; seq->param_count <= index; seq->param_count++) {
if (seq->param_count == index) {
seq->param_int[index] = val;
sprintf(tmpnum, "%" PRIu64, val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment