commit 4b875362ed16ae36be78d9bb94f1c5ba172b71fe
parent 1264065de5cca661aff86630df7ed62ffce3b25e
Author: ukai <ukai>
Date: Mon, 8 Dec 2003 16:08:01 +0000
[w3m-dev 04021] Deeply nested table
* file.c (completeHTMLstream): check obuf->table_level
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-09 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
+
+ * [w3m-dev 04021] Deeply nested table
+ * file.c (completeHTMLstream): check obuf->table_level
+
2003-10-26 Fumitoshi UKAI <ukai@debian.or.jp>
* Bug#217509: segfaults if TERM is not set
diff --git a/file.c b/file.c
@@ -6387,6 +6387,9 @@ completeHTMLstream(struct html_feed_environ *h_env, struct readbuffer *obuf)
HTMLlineproc1("</title>", h_env);
/* for unbalanced table tag */
+ if (obuf->table_level >= MAX_TABLE)
+ obuf->table_level = MAX_TABLE - 1;
+
while (obuf->table_level >= 0) {
table_mode[obuf->table_level].pre_mode
&= ~(TBLM_SCRIPT | TBLM_STYLE | TBLM_PLAIN);