Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
myers: avoid a Miri-flagged pointer invalidation (#10)
In Myers::new, the kforward and kbackward pointers (derived from kvec) are invalidated by a subsequent kvec.into() (into a pointer). This can be seen by copying the relevant code into the Rust playground and running it under Miri [1]. To fix this, make kvec a pointer from the start. [1] https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=554abe93817c3d95a3412006e8efb022 --- This was my attempt at fixing this - feel free to rewrite to fit your project's coding style if you like.
- Loading branch information