diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-30 20:53:57 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-11-30 20:53:57 (GMT) |
commit | 263b4d6675816c144856a77be1b7eb1b197b3138 (patch) | |
tree | cff87acc999d8f775f2594f896c97e0da2b099e4 /test | |
parent | 004885926373b2c1be6cc72b9de579166a30edb8 (diff) | |
download | hdf5-263b4d6675816c144856a77be1b7eb1b197b3138.zip hdf5-263b4d6675816c144856a77be1b7eb1b197b3138.tar.gz hdf5-263b4d6675816c144856a77be1b7eb1b197b3138.tar.bz2 |
[svn-r9604] Purpose:
Bug fix
Description:
Correct integer overflow situation for computing the size of a dataset.
Solution:
Rachet one of the dimensions down far enough that the total size of the
dataset's raw data doesn't overflow a 64-bit int.
Platforms tested:
FreeBSD 4.10 (sleipnir)
IRIX 6.? (tesla) w/-n32
Too minor to require h5committest
Diffstat (limited to 'test')
-rw-r--r-- | test/gen_old_layout.c | 2 | ||||
-rw-r--r-- | test/tlayouto.h5 | bin | 1576 -> 1576 bytes | |||
-rw-r--r-- | test/tmisc.c | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/test/gen_old_layout.c b/test/gen_old_layout.c index 473b3d3..46bbdaf 100644 --- a/test/gen_old_layout.c +++ b/test/gen_old_layout.c @@ -33,7 +33,7 @@ #define TESTFILE "tlayouto.h5" #define SPACE_RANK 2 #define SPACE_DIM0 (8*1024*1024*1024ULL) -#define SPACE_DIM1 ((4*1024*1024*1024ULL)+1ULL) +#define SPACE_DIM1 ((256*1024*1024ULL)+1ULL) /*------------------------------------------------------------------------- diff --git a/test/tlayouto.h5 b/test/tlayouto.h5 Binary files differindex 5dba556..a038e68 100644 --- a/test/tlayouto.h5 +++ b/test/tlayouto.h5 diff --git a/test/tmisc.c b/test/tmisc.c index 73f68f1..efadf0d 100644 --- a/test/tmisc.c +++ b/test/tmisc.c @@ -230,7 +230,7 @@ unsigned m13_rdata[MISC13_DIM1][MISC13_DIM2]; /* Data read from dataset #define MISC20_DSET2_NAME "Dataset2" #define MISC20_SPACE_RANK 2 #define MISC20_SPACE_DIM0 (8*1024*1024*(uint64_t)1024) -#define MISC20_SPACE_DIM1 ((4*1024*1024*(uint64_t)1024)+1) +#define MISC20_SPACE_DIM1 ((256*1024*(uint64_t)1024)+1) #define MISC20_SPACE2_DIM0 8 #define MISC20_SPACE2_DIM1 4 |