8000 hdf5open.c: Handle null dataspace gracefully by Dave-Allured · Pull Request #3135 · Unidata/netcdf-c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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
2 participants
0