Skip to content

hdf5open.c: Handle null dataspace gracefully #3135

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

Merged
merged 2 commits into from
Jun 26, 2025

Conversation

Dave-Allured
Copy link
Contributor

Change null dataspace detection from abort to HDF error.

Null dataspace is legal in an HDF5 file, but not in the netcdf data model.

As a side effect, the underlying error return H5S_NO_CLASS is also changed from assertion failure and abort, to a normal error return to the caller.

Closes #3128.

Change null dataspace detection from abort to HDF error.
Null dataspace is legal in an HDF5 file, but not in the netcdf data model.
Copy link
Collaborator

@DennisHeimbigner DennisHeimbigner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems correct and simple.

@WardF WardF self-assigned this Jun 26, 2025
@WardF WardF merged commit cb433b4 into Unidata:main Jun 26, 2025
63 checks passed
@Dave-Allured Dave-Allured deleted the gh3128.ds_null branch June 26, 2025 23:17
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.

Segmentation violation when opening an H5 file with nc_open
3 participants