The following panic appear on Rust version >= 1.78.0:
"slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed isize::MAX"
This panic happened because of the following changes in rust 1.78.0:.