aldanor / hdf5-rust

HDF5 for Rust
https://docs.rs/hdf5
Apache License 2.0
310 stars 85 forks source link

Ensure panic safety for functions passed to hdf5-c #110

Closed magnusuMET closed 4 years ago

magnusuMET commented 4 years ago

Crossing the FFI barrier with a panic can lead to unexpected issues and problems, and does not work well in hdf5-c. All function pointers should have a body wrapped in catch_unwind.