Prevent deref null pointer in renderCoTable()

Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260649537
This commit is contained in:
Tatsuya Kinoshita
2016-11-15 23:54:46 +09:00
parent 08285d6a18
commit ec99f18638

View File

@@ -1648,6 +1648,8 @@ renderCoTable(struct table *tbl, int maxlimit)
for (i = 0; i < tbl->ntable; i++) {
t = tbl->tables[i].ptr;
if (t == NULL)
continue;
col = tbl->tables[i].col;
row = tbl->tables[i].row;
indent = tbl->tables[i].indent;