aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-12-04 16:00:04 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-12-05 12:48:20 +0000
commit0e66622582db13c4ffeba38067e15efd2d68cd75 (patch)
treee0dea8b09148ac3a70d6dc30ce0af50a14a0e7d1 /file.c
parentPrevent negative array index in getMetaRefreshParam() (diff)
downloadw3m-0e66622582db13c4ffeba38067e15efd2d68cd75.tar.gz
w3m-0e66622582db13c4ffeba38067e15efd2d68cd75.zip
Prevent negative value of row for pushTable() in HTMLlineproc0()
Bug-Debian: https://github.com/tats/w3m/issues/67
Diffstat (limited to '')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index b9ccd86..5102c77 100644
--- a/file.c
+++ b/file.c
@@ -6432,6 +6432,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];