Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(H5IMget_image_info): H5Sget_simple_extent_dims() does not exceed array… #29

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

hyoklee
Copy link
Owner

@hyoklee hyoklee commented Nov 7, 2022

… 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]

… 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]>
@hyoklee hyoklee merged commit 2e643dd into hyoklee:develop Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants