aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 16:00:33 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-15 16:00:33 +0000
commit587867d610337f40b191fc7946cdb875cdc7193f (patch)
treecc99a7a2699d969e818aed16708dbf9a568314a7 /table.c
parent[w3m-dev 03437] Re: Check image size (diff)
downloadw3m-587867d610337f40b191fc7946cdb875cdc7193f.tar.gz
w3m-587867d610337f40b191fc7946cdb875cdc7193f.zip
[w3m-dev 03438] Re: segmentation fault by large complex table.
* table.c (check_table_height): check MAXROWCELL * table.h (MAXROWCELL): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'table.c')
-rw-r--r--table.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/table.c b/table.c
index cab6ca4..4842b4b 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.29 2002/11/05 16:43:10 ukai Exp $ */
+/* $Id: table.c,v 1.30 2002/11/15 16:00:33 ukai Exp $ */
/*
* HTML table
*/
@@ -1518,6 +1518,8 @@ check_table_height(struct table *t)
if (cell.row[idx] == j && cell.rowspan[idx] == rowspan)
c = idx;
}
+ if (c >= MAXROWCELL)
+ continue;
if (c >= cell.size) {
if (cell.size == 0) {
cell.size = max(MAXCELL, c + 1);