diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2015-03-31 19:13:34 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2015-03-31 19:13:34 (GMT) |
commit | cf11eef3859e01be8e81592ca8e5f242d4734673 (patch) | |
tree | b952d03ab0b1f33a73fdf0e4966fc2ac24aedfb1 /src | |
parent | 6c04e6b03c494d8177b6e723b39b326b582c8d9e (diff) | |
download | hdf5-cf11eef3859e01be8e81592ca8e5f242d4734673.zip hdf5-cf11eef3859e01be8e81592ca8e5f242d4734673.tar.gz hdf5-cf11eef3859e01be8e81592ca8e5f242d4734673.tar.bz2 |
[svn-r26677] HDFFV-8957: h52gif crashes when run against one of our own examples
The tool claimed it could handle 24bit images but there was no code to handle it.
(or might be there were but was removed by previous revisions.)
Also discovered that it does not accept multiple images nor -p for palette
as its user document and online help message indicated.
Solution:
Added code to verify dimension sizes are within 8 bit raster images limit and
added tests to verify the tools correctness.
Need to update user document tool.
Tested: h5committested.
Diffstat (limited to 'src')
-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) |