diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-06-22 15:47:57 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-06-22 15:47:57 (GMT) |
commit | f8f8bed0c2d9d8c9dd39ce09018e629c6e886037 (patch) | |
tree | f1e1aa7b5f13dec3121be487fb377097dbbda03a /src/H5FDsec2.c | |
parent | 83b77cb4eb777b8e04ba2bdc71e2c53bc9cfd1b5 (diff) | |
download | hdf5-f8f8bed0c2d9d8c9dd39ce09018e629c6e886037.zip hdf5-f8f8bed0c2d9d8c9dd39ce09018e629c6e886037.tar.gz hdf5-f8f8bed0c2d9d8c9dd39ce09018e629c6e886037.tar.bz2 |
[svn-r21015] Bug fix for Issue 2598 - In v1.6 library, there was EOA for the whole MULTI file saved in the
super block. We took it out in v1.8 library because it's meaningless
for the MULTI file. v1.8 library saves the EOA for the metadata file,
instead. But this caused some backward compatibility problem.
v1.8 library couldn't open the file created with v1.6 library. I
fixed the problem by checking the EOA value to detect the file
created with v1.6 library.
Tested on jam, koala, and heiwa.
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r-- | src/H5FDsec2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c index bb5dc15..7908fd9 100644 --- a/src/H5FDsec2.c +++ b/src/H5FDsec2.c @@ -697,7 +697,8 @@ H5FD_sec2_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, if(REGION_OVERFLOW(addr, size)) HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow, addr = %llu", (unsigned long long)addr) if((addr + size) > file->eoa) - HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow, addr = %llu", (unsigned long long)addr) + HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow, addr = %llu, size=%lu, eoa=%llu", + (unsigned long long)addr, size, (unsigned long long)file->eoa) /* Seek to the correct location */ if(addr != file->pos || OP_READ != file->op) { |