From ec99f186380d26ebf791569fdbc56dae60632365 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Tue, 15 Nov 2016 23:54:46 +0900 Subject: Prevent deref null pointer in renderCoTable() Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260649537 --- table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/table.c b/table.c index 2c5c36d..572ebd6 100644 --- a/table.c +++ b/table.c @@ -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; -- cgit v1.2.3