dyz1990 / sevenz-rust

A 7z decompressor/compressor lib written in pure rust
Apache License 2.0
146 stars 24 forks source link

Since Rust 1.78 - unsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null #62

Closed Krensi closed 6 days ago

Krensi commented 1 month ago

Hey there, first of all thanks for the cool crate!

Since the upgrade to Rust 1.78 i get the following error:

unsafe precondition(s) violated: ptr::copy_nonoverlapping requires that both pointer arguments are aligned and non-null and the specified memory ranges do not overlap

Here is the call stack. It seems to be an issue within the lzma_rust crate?

grafik

Downgrading to Rust 1.77 fixes the problem again. I found a similar issue here: https://github.com/sequenceplanner/r2r/issues/96

Thanks Regards, Christian

dyz1990 commented 6 days ago

Fixed in version 0.1.6

Krensi commented 6 days ago

Thanks :-)