Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive the &mut T in as_mut from a raw ptr, not &T (#471)
The previous implementation converts a &T to a &mut T by casting through raw pointers, which is UB. Miri can detect this with -Zmiri-tag-raw-pointers, though the wasmparser crate itself doesn't have the test coverage to hit it.
- Loading branch information