Commit 30b0c971 authored by Tatsuya Kinoshita's avatar Tatsuya Kinoshita

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

Bug-Debian: https://github.com/tats/w3m/issues/71
parent a3ed914b
...@@ -2566,8 +2566,10 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, ...@@ -2566,8 +2566,10 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
} }
} }
#ifdef ID_EXT #ifdef ID_EXT
if (parsedtag_get_value(tag, ATTR_ID, &p)) if (parsedtag_get_value(tag, ATTR_ID, &p)) {
check_row(tbl, tbl->row);
tbl->tridvalue[tbl->row] = Strnew_charp(p); tbl->tridvalue[tbl->row] = Strnew_charp(p);
}
#endif /* ID_EXT */ #endif /* ID_EXT */
tbl->trattr = align | valign; tbl->trattr = align | valign;
break; break;
......
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