summaryrefslogtreecommitdiffstats
path: root/src/H5Pdeprec.c
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2020-10-26 13:36:27 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2020-10-26 13:36:27 (GMT)
commit7bfa10018ecf5efe54b4a699bb684d31468c8b42 (patch)
tree46ae17c8595a0f1ba500b48ec760eac0e6f78bb5 /src/H5Pdeprec.c
parent58d8eae182ac764ef15c3ed040a12a96aa4d16f0 (diff)
downloadhdf5-7bfa10018ecf5efe54b4a699bb684d31468c8b42.zip
hdf5-7bfa10018ecf5efe54b4a699bb684d31468c8b42.tar.gz
hdf5-7bfa10018ecf5efe54b4a699bb684d31468c8b42.tar.bz2
Fix HDFFV-10590
Description This is to fix the CVE issue CVE-2018-17432. h5repack produced a segfault on a corrupted file. This fix modified the dataspace encode and decode functions per Quincey's suggestion to prevent the segfault. h5repack only failed for the corrupted file now. Platforms tested: Linux/64 (jelly)
Diffstat (limited to 'src/H5Pdeprec.c')
-rw-r--r--src/H5Pdeprec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Pdeprec.c b/src/H5Pdeprec.c
index d80c153..5b70080 100644
--- a/src/H5Pdeprec.c
+++ b/src/H5Pdeprec.c
@@ -220,8 +220,8 @@ H5Pregister1(hid_t cls_id, const char *name, size_t size, void *def_value, H5P_p
herr_t ret_value; /* Return value */
FUNC_ENTER_API(FAIL)
- H5TRACE10("e", "i*sz*xxxxxxx", cls_id, name, size, def_value, prp_create, prp_set, prp_get, prp_delete,
- prp_copy, prp_close);
+ H5TRACE10("e", "i*sz*xxxxxxx", cls_id, name, size, def_value, prp_create,
+ prp_set, prp_get, prp_delete, prp_copy, prp_close);
/* Check arguments. */
if (NULL == (pclass = (H5P_genclass_t *)H5I_object_verify(cls_id, H5I_GENPROP_CLS)))
@@ -404,8 +404,8 @@ H5Pinsert1(hid_t plist_id, const char *name, size_t size, void *value, H5P_prp_s
herr_t ret_value; /* return value */
FUNC_ENTER_API(FAIL)
- H5TRACE9("e", "i*sz*xxxxxx", plist_id, name, size, value, prp_set, prp_get, prp_delete, prp_copy,
- prp_close);
+ H5TRACE9("e", "i*sz*xxxxxx", plist_id, name, size, value, prp_set, prp_get,
+ prp_delete, prp_copy, prp_close);
/* Check arguments. */
if (NULL == (plist = (H5P_genplist_t *)H5I_object_verify(plist_id, H5I_GENPROP_LST)))