summaryrefslogtreecommitdiffstats
path: root/src/H5HFtest.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-08-13 04:14:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-08-13 04:14:38 (GMT)
commit2ffaed7e7f54ad789b9a6000d1bbac4121076620 (patch)
treeff8aa5aaaf8ef4c68ee96d328d1106b43d76d5d7 /src/H5HFtest.c
parenta7304e80a36d144801bafb0b24b0e8b1a3c3f17e (diff)
downloadhdf5-2ffaed7e7f54ad789b9a6000d1bbac4121076620.zip
hdf5-2ffaed7e7f54ad789b9a6000d1bbac4121076620.tar.gz
hdf5-2ffaed7e7f54ad789b9a6000d1bbac4121076620.tar.bz2
[svn-r12571] Description:
Fix failure in "remove bogus ID" test which turned up randomly (due to random "bogus" IDs being used in test :-) by adding some more defensive checks on object IDs to the object removal code. Tested on: FreeBSD 4.11 (sleipnir) Linux/64 2.4 (mir) Solaris/64 (shanti)
Diffstat (limited to 'src/H5HFtest.c')
-rw-r--r--src/H5HFtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5HFtest.c b/src/H5HFtest.c
index 1eeb15e..d1daa2b 100644
--- a/src/H5HFtest.c
+++ b/src/H5HFtest.c
@@ -320,7 +320,8 @@ H5HF_get_id_off_test(const H5HF_t *fh, const void *_id, hsize_t *obj_off)
HDassert(id);
HDassert(obj_off);
- /* Get the offset for a heap ID */
+ /* Get the offset for a 'normal' heap ID */
+ id++;
UINT64DECODE_VAR(id, *obj_off, fh->hdr->heap_off_size); \
FUNC_LEAVE_NOAPI(SUCCEED)