Commit a6ddc331 authored by Tatsuya Kinoshita's avatar Tatsuya Kinoshita

Prevent array index out of bounds for tabattr in feed_table_tag()

Bug-Debian: https://github.com/tats/w3m/issues/60
parent d7f55d59
......@@ -2592,7 +2592,7 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
}
tbl->col++;
check_row(tbl, tbl->row);
while (tbl->tabattr[tbl->row][tbl->col]) {
while (tbl->col < MAXCOL && tbl->tabattr[tbl->row][tbl->col]) {
tbl->col++;
}
if (tbl->col > MAXCOL - 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment