Skip to content
Myr

column: detect invalid index range where end < start

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 6d2fb1e · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:column.c+3 added-1 removed
124 unmodified lines
125 } else126 idx_start = 0;127 }128129 if (idx_start == 0 || idx_start > col_count || idx_end > col_count) {129 if (idx_start == 0 || idx_start > col_count ||130 idx_end > col_count || idx_end < idx_start)131 {132 /* Invalid index */133 p++;134 continue;135 }
51 unmodified lines