diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-04 16:00:04 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2017-01-06 13:02:38 +0000 |
commit | 57c5b4bd42069bf1116ba8db7f99f40997202e4a (patch) | |
tree | 6aab88edd9d8cce1c7b4942fa62c1f576ab02b88 /file.c | |
parent | Prevent negative array index in getMetaRefreshParam() (diff) | |
download | w3m-57c5b4bd42069bf1116ba8db7f99f40997202e4a.tar.gz w3m-57c5b4bd42069bf1116ba8db7f99f40997202e4a.zip |
Prevent negative value of row for pushTable() in HTMLlineproc0()
Bug-Debian: https://github.com/tats/w3m/issues/67
Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=0e66622582db13c4ffeba38067e15efd2d68cd75
Diffstat (limited to '')
-rw-r--r-- | file.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6404,6 +6404,8 @@ HTMLlineproc0(char *line, struct html_feed_environ *h_env, int internal) if (obuf->table_level >= 0) { struct table *tbl0 = tables[obuf->table_level]; str = Sprintf("<table_alt tid=%d>", tbl0->ntable)->ptr; + if (tbl0->row < 0) + continue; pushTable(tbl0, tbl); tbl = tbl0; tbl_mode = &table_mode[obuf->table_level]; |