diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-08-24 10:05:39 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-08-24 10:05:58 +0000 |
commit | a6257663824c63abb3c62c4dd62455fe6f63d958 (patch) | |
tree | 052f2fc68b5aa5de436f1a8d4207bd6e58daf1f3 /table.c | |
parent | Prevent segfault for formUpdateBuffer (diff) | |
download | w3m-a6257663824c63abb3c62c4dd62455fe6f63d958.tar.gz w3m-a6257663824c63abb3c62c4dd62455fe6f63d958.zip |
Prevent segfault with malformed table_alt
Bug-Debian: https://github.com/tats/w3m/issues/24
Diffstat (limited to '')
-rw-r--r-- | table.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -760,7 +760,7 @@ do_refill(struct table *tbl, int row, int col, int maxlimit) struct parsed_tag *tag; if ((tag = parse_tag(&p, TRUE)) != NULL) parsedtag_get_value(tag, ATTR_TID, &id); - if (id >= 0 && id < tbl->ntable) { + if (id >= 0 && id < tbl->ntable && tbl->tables[id].ptr) { int alignment; TextLineListItem *ti; struct table *t = tbl->tables[id].ptr; |