diff options
| author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-15 14:54:46 +0000 | 
|---|---|---|
| committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-15 14:59:57 +0000 | 
| commit | ec99f186380d26ebf791569fdbc56dae60632365 (patch) | |
| tree | 2ccc9c54b41bcd8bf7e2cdb54293426c76335ed7 | |
| parent | Update ChangeLog (diff) | |
| download | w3m-ec99f186380d26ebf791569fdbc56dae60632365.tar.gz w3m-ec99f186380d26ebf791569fdbc56dae60632365.zip | |
Prevent deref null pointer in renderCoTable()
Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260649537
Diffstat (limited to '')
| -rw-r--r-- | table.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| @@ -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; | 
