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/trunk@7697 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2002-12-20 04:15:00 +00:00
parent f2d05c0e7e
commit 86ac1b534f
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2002-12-19 David Hampton <hampton@employees.org>
* src/register/register-core/register-common.h: Large accounts are
overflowing the data types used in the register code and are
causing crashes. #92072, #98802
2002-12-16 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/glade/hbci.glade: Set max size of

View File

@ -51,8 +51,8 @@ BasicCell * gnc_register_make_cell (const char *cell_type_name);
*/
typedef struct _VirtualCellLocation VirtualCellLocation;
struct _VirtualCellLocation {
short virt_row;
short virt_col;
int virt_row;
int virt_col;
};
@ -74,8 +74,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;
};