diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-05 13:05:07 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-12-05 13:05:07 +0000 |
commit | a6ddc331e90698fa57732bd55f2e8407f3f32f7a (patch) | |
tree | 71b08fd40e66f3e529779aba4115824a1c3e7bba | |
parent | Prevent negative array index in process_textarea() (diff) | |
download | w3m-a6ddc331e90698fa57732bd55f2e8407f3f32f7a.tar.gz w3m-a6ddc331e90698fa57732bd55f2e8407f3f32f7a.zip |
Prevent array index out of bounds for tabattr in feed_table_tag()
Bug-Debian: https://github.com/tats/w3m/issues/60
-rw-r--r-- | table.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2592,7 +2592,7 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, } tbl->col++; check_row(tbl, tbl->row); - while (tbl->tabattr[tbl->row][tbl->col]) { + while (tbl->col < MAXCOL && tbl->tabattr[tbl->row][tbl->col]) { tbl->col++; } if (tbl->col > MAXCOL - 1) { |