diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2019-03-20 19:03:48 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2019-03-20 19:03:48 (GMT) |
commit | 7add52ff4f2443357648d53d52add274d1b18b5f (patch) | |
tree | 7bfeb541f99b73c95288477e5fd1b84caef8bb01 /src/H5I.c | |
parent | 55d1931dc6af168adc3804586a0da22287b29187 (diff) | |
download | hdf5-7add52ff4f2443357648d53d52add274d1b18b5f.zip hdf5-7add52ff4f2443357648d53d52add274d1b18b5f.tar.gz hdf5-7add52ff4f2443357648d53d52add274d1b18b5f.tar.bz2 |
Fixed HDFFV-10210 and HDFFV-10587
Description:
- Added parameter validation (HDFFV-10210)
- Added detection of division by zero (HDFFV-10587 - CVE-2018-17438)
- Fixed typos in various tests
Platforms tested:
Linux/64 (jelly)
Linux/64 (platypus)
Darwin (osx1011test)
Diffstat (limited to 'src/H5I.c')
-rw-r--r-- | src/H5I.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -355,6 +355,9 @@ H5Itype_exists(H5I_type_t type) FUNC_ENTER_API(FAIL) H5TRACE1("t", "It", type); + if(H5I_IS_LIB_TYPE(type)) + HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, FAIL, "cannot call public function on library type") + if (type <= H5I_BADID || type >= H5I_next_type) HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid type number") |