diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-15 14:54:46 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-19 05:47:54 +0000 |
commit | f70aecd15ac2806755f11659a3e839085ec6304c (patch) | |
tree | 876a96b4042e18c32853300cebfd53a4b18f0aee | |
parent | Prevent infinite recursion with nested table and textarea (diff) | |
download | w3m-f70aecd15ac2806755f11659a3e839085ec6304c.tar.gz w3m-f70aecd15ac2806755f11659a3e839085ec6304c.zip |
Prevent deref null pointer in renderCoTable()
Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260649537
Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=ec99f186380d26ebf791569fdbc56dae60632365
-rw-r--r-- | table.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1649,6 +1649,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; |