diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-12-08 16:08:01 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-12-08 16:08:01 +0000 |
commit | 99ef8dfee3c00529d8a92ce275cab367e4d6a786 (patch) | |
tree | 6c3365c933f2326e8e5cb1f8a39b83b246079848 /file.c | |
parent | Bug#217509: segfaults if TERM is not set (diff) | |
download | w3m-99ef8dfee3c00529d8a92ce275cab367e4d6a786.tar.gz w3m-99ef8dfee3c00529d8a92ce275cab367e4d6a786.zip |
[w3m-dev 04021] Deeply nested table
* file.c (completeHTMLstream): check obuf->table_level
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 <sys/types.h> #include "myctype.h" @@ -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); |