Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
H5IMget_image_info: H5Sget_simple_extent_dims() does not exceed array…
… size Malformed hdf5 files may provide more dimensions than the array dim[] is able to hold. Check number of elements first by calling H5Sget_simple_extent_dims() with NULL for both 'dims' and 'maxdims' arguments. This will cause the function to return only the number of dimensions. This fixes CVE-2018-17439 / HDFFV-10589 / Bug HDFGroup#2226. Signed-off-by: Egbert Eich <[email protected]>
- Loading branch information