Large accounts are overflowing the data types used in the register

code and are causing crashes. #92072, #98802


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/1.6@7696 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2002-12-20 03:55:30 +00:00
parent ce85d07790
commit 4525380ae9
3 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2002-12-19 David Hampton <hampton@employees.org>
* src/register/register-common.h:
* src/register/table-allgui.h: Large accounts are overflowing the
data types used in the register code and are causing
crashes. #92072, #98802
2002-10-18 Christian Stimming <stimming@tuhh.de>
* accounts/fr_FR/*: Some bug fixes by frederic.lespez@wanadoo.fr.

View File

@ -32,8 +32,8 @@
*/
typedef struct _VirtualCellLocation VirtualCellLocation;
struct _VirtualCellLocation {
short virt_row;
short virt_col;
int virt_row;
int virt_col;
};
@ -55,8 +55,8 @@ gboolean virt_cell_loc_equal (VirtualCellLocation vcl1,
typedef struct _VirtualLocation VirtualLocation;
struct _VirtualLocation {
VirtualCellLocation vcell_loc;
short phys_row_offset;
short phys_col_offset;
int phys_row_offset;
int phys_col_offset;
};

View File

@ -207,10 +207,10 @@ typedef void (*VirtCellDataCopy) (gpointer to, gconstpointer from);
struct _Table
{
short num_virt_rows;
short num_virt_cols;
int num_virt_rows;
int num_virt_cols;
short num_header_phys_rows;
int num_header_phys_rows;
CellBlock *current_cursor;
@ -237,7 +237,7 @@ struct _Table
/* If positive, denotes a row that marks a boundary that should
* be visually distinguished. */
short dividing_row;
int dividing_row;
/* private data */