Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Unreleased

- Always use an `unsafe` block to `unsafe_main_ptr`. ([#643](https://github.com/fastly/Viceroy/pull/643))

## 0.19.0 (2026-06-16)

- Fix adapter codegen to avoid memory shift overflow, and support SIMD instructions. ([#629](https://github.com/fastly/Viceroy/pull/629))
Expand Down
5 changes: 4 additions & 1 deletion wasm_abi/adapter/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ macro_rules! main_ptr {
#[cfg(feature = "noshift")]
macro_rules! unsafe_main_ptr {
($ptr:expr) => {{
$ptr
// Always wrap `$ptr` in `unsafe` for consistency with the
// `not(feature = "noshift")` version.
#[allow(unused_unsafe)]
unsafe { $ptr }
}};
}
#[cfg(feature = "noshift")]
Expand Down
Binary file modified wasm_abi/data/viceroy-component-adapter.library.noshift.wasm
Binary file not shown.
Binary file modified wasm_abi/data/viceroy-component-adapter.library.wasm
Binary file not shown.
Binary file modified wasm_abi/data/viceroy-component-adapter.noshift.wasm
Binary file not shown.
Binary file modified wasm_abi/data/viceroy-component-adapter.wasm
Binary file not shown.
Loading