[w3m-dev 03371] segmentation fault by large complex table.

* table.c (bsearch_2short): indexarry char to short
	(bsearch_double): ditto
	(dv2sv): ditto
	(table_rule_width): ditto
	(set_integrated_width): ditto
	(check_table_height): ditto
	(feed_table_tag): ditto
* table.h (struct table_cell): index, eindex char to short
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-11-05 15:45:52 +00:00
parent 786208e0fa
commit 28636c30f5
3 changed files with 48 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: table.h,v 1.5 2001/11/30 10:10:24 ukai Exp $ */
/* $Id: table.h,v 1.6 2002/11/05 15:45:53 ukai Exp $ */
#if (defined(MESCHACH) && !defined(MATRIX))
#define MATRIX
#endif /* (defined(MESCHACH) && !defined(MATRIX)) */
@@ -37,11 +37,11 @@ typedef unsigned short table_attr;
struct table_cell {
short col[MAXCELL];
short colspan[MAXCELL];
char index[MAXCELL];
short index[MAXCELL];
short maxcell;
short icell;
#ifdef MATRIX
char eindex[MAXCELL];
short eindex[MAXCELL];
short necell;
#endif /* MATRIX */
short width[MAXCELL];