diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-09 13:55:34 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-19 12:25:54 +0000 |
commit | d0af557318f84a227608bb8a80daaae0d287ce7b (patch) | |
tree | 855d756a95dcfba7181f0d95bd18b55a2c1c5cc2 | |
parent | Prevent infinite recursion in HTMLlineproc0 (diff) | |
download | w3m-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
-rw-r--r-- | table.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |