mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-11 16:01:00 +08:00
[svn-r9603] 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
This commit is contained in:
parent
5d104d60c9
commit
17daa748fa
@ -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)
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
|
BIN
test/tlayouto.h5
BIN
test/tlayouto.h5
Binary file not shown.
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user