diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2015-04-01 00:39:21 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2015-04-01 00:39:21 (GMT) |
commit | ee7e18f310351b30bb736fd057594ff81458369f (patch) | |
tree | 862cfdb6bda5db0a804a670b0702d6514080b140 /src/H5Tnative.c | |
parent | e5be794ae28dd4604688bfa00ff558176f35dcdc (diff) | |
download | hdf5-ee7e18f310351b30bb736fd057594ff81458369f.zip hdf5-ee7e18f310351b30bb736fd057594ff81458369f.tar.gz hdf5-ee7e18f310351b30bb736fd057594ff81458369f.tar.bz2 |
[svn-r26688] HDFFV-8667: h5repack crashes on enumerated 8-bit type nested in compound type
Fixed and added user provided test file to verify the fix. (Test added to h5dump/testh5dump.sh.in).
Tested: h5committest
Diffstat (limited to 'src/H5Tnative.c')
-rw-r--r-- | src/H5Tnative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tnative.c b/src/H5Tnative.c index 1a97f39..960a811 100644 --- a/src/H5Tnative.c +++ b/src/H5Tnative.c @@ -396,7 +396,7 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot get member value") HDmemcpy(memb_value, tmp_memb_value, H5T_get_size(super_type)); - if(H5T_convert(tpath, super_type_id, nat_super_type_id, (size_t)1, (size_t)0, (size_t)0, memb_value, NULL, H5P_DEFAULT) < 0) + if(H5T_convert(tpath, super_type_id, nat_super_type_id, (size_t)1, (size_t)0, (size_t)0, memb_value, NULL, H5P_DATASET_XFER_DEFAULT) < 0) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot get member value") if(H5T__enum_insert(new_type, memb_name, memb_value) < 0) |