From e458def067859615ce4bc7170733d368f49d63c2 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 9 Nov 2016 22:55:34 +0900 Subject: Check indent_level to prevent infinite recursion Bug-Debian: https://github.com/tats/w3m/issues/37 --- table.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'table.c') diff --git a/table.c b/table.c index d88e983..33593b1 100644 --- a/table.c +++ b/table.c @@ -2326,6 +2326,8 @@ feed_table_block_tag(struct table *tbl, int offset; if (mode->indent_level <= 0 && indent == -1) return; + if (mode->indent_level >= CHAR_MAX && indent == 1) + return; setwidth(tbl, mode); feed_table_inline_tag(tbl, line, mode, -1); clearcontentssize(tbl, mode); -- cgit v1.2.3