From 99ef8dfee3c00529d8a92ce275cab367e4d6a786 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 8 Dec 2003 16:08:01 +0000 Subject: [w3m-dev 04021] Deeply nested table * file.c (completeHTMLstream): check obuf->table_level From: Kiyokazu SUTO --- file.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 8ac334a..69f8eeb 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.233 2003/10/22 18:41:11 ukai Exp $ */ +/* $Id: file.c,v 1.234 2003/12/08 16:08:01 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -6387,6 +6387,9 @@ completeHTMLstream(struct html_feed_environ *h_env, struct readbuffer *obuf) HTMLlineproc1("", 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); -- cgit v1.2.3