Skip to content

misaligned pointer dereference #11

Closed
@stephanemagnenat

Description

@stephanemagnenat

Using Rust 1.71 on a Wasm target, I am getting the following error in debug mode:

book_web_advanced.js:470 panicked at 'misaligned pointer dereference: address must be a multiple of 0x10 but is 0x3cabc8',
.cargo/registry/src/index.crates.io-6f17d22bba15001f/simd-adler32-0.3.5/src/imp/wasm.rs:103

I am using simd-adler32 indirectly through several dependencies of the image crate (for example png), and I am compiling the wasm with the following flag: RUSTFLAGS="-C target-feature=+simd128" .

My understanding is that we are hitting the recently-merged (1.70) safety check: rust-lang/rust#98112

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions