Update HDF5 to 2.0 and fix null pointer dereference in tuple impl #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
impl_tuple!macro that caused test failuresChanges
Bug Fix: Null Pointer Dereference in
impl_tuple!The
impl_tuple!macro inhdf5-types/src/h5type.rswas using undefined behavior by dereferencing a null pointer to compute field offsets:This caused tests to fail with "null pointer dereference occurred" on recent Rust versions. Fixed by replacing with
std::mem::offset_of!which is safe and stable since Rust 1.77.Warning Fixes
windows_dllcfg registration, lifetime elision warnings inDynValueRuntimeErrorstruct, registered all custom cfg valuesdocrstypo, added explicit lifetimes, suppressed intentional function pointer comparison warningMSRV Update
Updated minimum supported Rust version from 1.64.0 to 1.80.0 to enable
rustc-check-cfgsupport for proper cfg validation.Test plan
cargo testpasses successfully