diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2009-10-02 20:54:51 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2009-10-02 20:54:51 (GMT) |
commit | c26ed138a65b2840c057e437fa061a4749ba7ea1 (patch) | |
tree | 6d8d51e95f944b9783020bfd2e01fcc15205fe8b /src/H5Dchunk.c | |
parent | e8e9b163c3239c2a4384c152d9c0171f4882c394 (diff) | |
download | hdf5-c26ed138a65b2840c057e437fa061a4749ba7ea1.zip hdf5-c26ed138a65b2840c057e437fa061a4749ba7ea1.tar.gz hdf5-c26ed138a65b2840c057e437fa061a4749ba7ea1.tar.bz2 |
[svn-r17586] Purpose: Fix bug 1597
Description:
When copying a dataset using a vlen inside a compound, the various dataset
copying callbacks would allocate a background buffer but would not use it when
converting from disk to memory, only memory to disk. This caused an assertion
failure as compounds always need a background buffer. These callbacks have
been modified to use the background buffer for both conversions.
Tested: jam, linew, smirom (h5committest)
Diffstat (limited to 'src/H5Dchunk.c')
-rw-r--r-- | src/H5Dchunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index 62a3941..8788d86 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -4210,7 +4210,7 @@ H5D_chunk_copy_cb(const H5D_chunk_rec_t *chunk_rec, void *_udata) /* Convert from source file to memory */ H5_CHECK_OVERFLOW(udata->nelmts, uint32_t, size_t); - if(H5T_convert(tpath_src_mem, tid_src, tid_mem, (size_t)udata->nelmts, (size_t)0, (size_t)0, buf, NULL, udata->idx_info_dst->dxpl_id) < 0) + if(H5T_convert(tpath_src_mem, tid_src, tid_mem, (size_t)udata->nelmts, (size_t)0, (size_t)0, buf, bkg, udata->idx_info_dst->dxpl_id) < 0) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, H5_ITER_ERROR, "datatype conversion failed") /* Copy into another buffer, to reclaim memory later */ |