diff options
| author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-05 13:36:58 +0000 | 
|---|---|---|
| committer | Tatsuya Kinoshita <tats@debian.org> | 2016-12-05 13:36:58 +0000 | 
| commit | 30b0c971676e229dabd2715c200f76bcfe27a714 (patch) | |
| tree | 7d66fe4a541760e3fe9567a5b5095c00b4f8c571 | |
| parent | Prevent negative array index in set_integered_width() (diff) | |
| download | w3m-30b0c971676e229dabd2715c200f76bcfe27a714.tar.gz w3m-30b0c971676e229dabd2715c200f76bcfe27a714.zip | |
Prevent array index out of bounds for tridvalue in feed_table_tag()
Bug-Debian: https://github.com/tats/w3m/issues/71
| -rw-r--r-- | table.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| @@ -2566,8 +2566,10 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,  	    }  	}  #ifdef ID_EXT -	if (parsedtag_get_value(tag, ATTR_ID, &p)) +	if (parsedtag_get_value(tag, ATTR_ID, &p)) { +	    check_row(tbl, tbl->row);  	    tbl->tridvalue[tbl->row] = Strnew_charp(p); +	}  #endif				/* ID_EXT */  	tbl->trattr = align | valign;  	break; | 
