cranelift_frontend::FunctionBuilder::emit_small_memory_copy
(documentation) takes the arguments dest_align
and src_align
, which it uses only for an assertion and then ignores. It chooses an access size which may be larger than the alignment and calls flags.set_aligned();
and proceeds to doing unaligned memory access. This seems to be a mistake.
Can you open an issue?
I don't have a Github account, so unfortunately that excludes me from the issue tracker. I might create an account that I use only to contribute to Cranelift, but I'm very reluctant after all the bad news about Github.
No problem. Can I create an issue and copy paste your message?
Of course you can. Thank you.
Done: https://github.com/bytecodealliance/wasmtime/issues/3583
Last updated: Dec 23 2024 at 12:05 UTC