[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>
This commit is contained in:
Fumitoshi UKAI
2002-11-15 16:00:33 +00:00
parent 13a8362c3b
commit 587867d610
3 changed files with 12 additions and 3 deletions

View File

@@ -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);