aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-11-09 13:55:34 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-11-19 12:25:54 +0000
commitd0af557318f84a227608bb8a80daaae0d287ce7b (patch)
tree855d756a95dcfba7181f0d95bd18b55a2c1c5cc2 /table.c
parentPrevent infinite recursion in HTMLlineproc0 (diff)
downloadw3m-d0af557318f84a227608bb8a80daaae0d287ce7b.tar.gz
w3m-d0af557318f84a227608bb8a80daaae0d287ce7b.zip
Check indent_level to prevent infinite recursion
Bug-Debian: https://github.com/tats/w3m/issues/37 Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=e458def067859615ce4bc7170733d368f49d63c2
Diffstat (limited to 'table.c')
-rw-r--r--table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/table.c b/table.c
index 1b425db..c57187a 100644
--- a/table.c
+++ b/table.c
@@ -2342,6 +2342,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);