From 0e66622582db13c4ffeba38067e15efd2d68cd75 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Mon, 5 Dec 2016 01:00:04 +0900 Subject: Prevent negative value of row for pushTable() in HTMLlineproc0() Bug-Debian: https://github.com/tats/w3m/issues/67 --- file.c | 2 ++ 1 file changed, 2 insertions(+) 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("", tbl0->ntable)->ptr; + if (tbl0->row < 0) + continue; pushTable(tbl0, tbl); tbl = tbl0; tbl_mode = &table_mode[obuf->table_level]; -- cgit v1.2.3