[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:
4
table.c
4
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);
|
||||
|
||||
Reference in New Issue
Block a user