diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-26 07:10:18 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-26 07:10:18 +0000 |
commit | 43295bdd62998d434f244e925ca6db1af4cb77fb (patch) | |
tree | 9f59c88283c65618079acff377831be5a296dcff /table.c | |
parent | w3m 0.3.2 branch: backport from trunk (diff) | |
download | w3m-43295bdd62998d434f244e925ca6db1af4cb77fb.tar.gz w3m-43295bdd62998d434f244e925ca6db1af4cb77fb.zip |
w3m 0.3.2 branch: backport from trunk
* [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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: table.c,v 1.27.4.1 2002/11/26 07:09:09 ukai Exp $ */ +/* $Id: table.c,v 1.27.4.2 2002/11/26 07:10:18 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); |