Repository: bytecodealliance/wasmtime
Pull request #7941 (2024-02-14 21:58:44)

vet: prune lockfile
This is a retry of #7910 to fix some `cargo vet` warnings; it is the result of running `cargo vet prune`.

<!--
Please make sure you include the following information:

- If this work has been discussed elsewhere, please include a link to that
  conversation. If it was discussed in an issue, just mention "issue #...".

- Explain why this change is needed. If the details are in an issue already,
  this can be brief.

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->



Patch:
diff --git a/cranelift/jit/src/backend.rs b/cranelift/jit/src/backend.rs
index f04b89d84..631a646bb 100644
--- a/cranelift/jit/src/backend.rs
+++ b/cranelift/jit/src/backend.rs
@@ -851,7 +851,11 @@ impl Module for JITModule {
         } = data;
 
         let size = init.size();
-        let ptr = if decl.writable {
+        let ptr = if size == 0 {
+            // Return a correctly aligned non-null pointer to avoid UB in write_bytes and
+            // copy_nonoverlapping.
+            usize::try_from(align.unwrap_or(WRITABLE_DATA_ALIGNMENT)).unwrap() as *mut u8
+        } else if decl.writable {
             self.memory
                 .writable
                 .allocate(size, align.unwrap_or(WRITABLE_DATA_ALIGNMENT))
@@ -869,6 +873,17 @@ impl Module for JITModule {
                 })?
         };
 
+        if ptr.is_null() {
+            // FIXME pass a Layout to allocate and only compute the layout once.
+            std::alloc::handle_alloc_error(
+                std::alloc::Layout::from_size_align(
+                    size,
+                    align.unwrap_or(READONLY_DATA_ALIGNMENT).try_into().unwrap(),
+                )
+                .unwrap(),
+            );
+        }
+
         match *init {
             Init::Uninitialized => {
                 panic!("data is not initialized yet");
diff --git a/supply-chain/imports.lock b/supply-chain/imports.lock
index d1e9fe4ef..25456a8db 100644
--- a/supply-chain/imports.lock
+++ b/supply-chain/imports.lock
@@ -1,393 +1,193 @@
 
 # cargo-vet imports lock
 
-[[unpublished.cranelift]]
-version = "0.105.0"
-audited_as = "0.104.0"
-
 [[unpublished.cranelift]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-bforest]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-bforest]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-codegen]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-codegen]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-codegen-meta]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-codegen-meta]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-codegen-shared]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-codegen-shared]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-control]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-control]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-entity]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-entity]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-frontend]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-frontend]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-interpreter]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-interpreter]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-isle]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-isle]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-jit]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-jit]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-module]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-module]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-native]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-native]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-object]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-object]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-reader]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-reader]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-serde]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-serde]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.cranelift-wasm]]
-version = "0.105.0"
-audited_as = "0.104.0"
+audited_as = "0.104.1"
 
 [[unpublished.cranelift-wasm]]
 version = "0.106.0"
-audited_as = "0.104.0"
-
-[[unpublished.wasi-cap-std-sync]]
-version = "18.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasi-cap-std-sync]]
-version = "19.0.0"
-audited_as = "17.0.0"
+audited_as = "0.104.1"
 
 [[unpublished.wasi-common]]
-version = "18.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasi-common]]
-version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasi-tokio]]
-version = "18.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasi-tokio]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-asm-macros]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-asm-macros]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-cache]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-cache]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-cli]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-cli]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-cli-flags]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-cli-flags]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-component-macro]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-component-macro]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-component-util]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-component-util]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-cranelift]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-cranelift]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-cranelift-shared]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-cranelift-shared]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-environ]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-environ]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-explorer]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-explorer]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-fiber]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-fiber]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-jit-debug]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-jit-debug]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-jit-icache-coherence]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-jit-icache-coherence]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-runtime]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-runtime]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-types]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-types]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-wasi]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-wasi]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-wasi-http]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-wasi-http]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-wasi-nn]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-wasi-nn]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-wasi-threads]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-wasi-threads]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-wast]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-wast]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-winch]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-winch]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-wit-bindgen]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-wit-bindgen]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wasmtime-wmemcheck]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wasmtime-wmemcheck]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wiggle]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wiggle]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wiggle-generate]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wiggle-generate]]
 version = "19.0.0"
-audited_as = "17.0.0"
-
-[[unpublished.wiggle-macro]]
-version = "18.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wiggle-macro]]
 version = "19.0.0"
-audited_as = "17.0.0"
+audited_as = "17.0.1"
 
 [[unpublished.wiggle-test]]
 version = "0.0.0"
 audited_as = "0.1.0"
 
-[[unpublished.winch-codegen]]
-version = "0.16.0"
-audited_as = "0.15.0"
-
 [[unpublished.winch-codegen]]
 version = "0.17.0"
-audited_as = "0.15.0"
+audited_as = "0.15.1"
 
 [[publisher.aho-corasick]]
 version = "1.0.2"
@@ -480,13 +280,6 @@ user-id = 189
 user-login = "BurntSushi"
 user-name = "Andrew Gallant"
 
-[[publisher.cap-fs-ext]]
-version = "2.0.1"
-when = "2024-01-02"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.cap-fs-ext]]
 version = "3.0.0"
 when = "2024-01-11"
@@ -494,13 +287,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.cap-net-ext]]
-version = "2.0.1"
-when = "2024-01-02"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.cap-net-ext]]
 version = "3.0.0"
 when = "2024-01-11"
@@ -508,13 +294,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.cap-primitives]]
-version = "2.0.1"
-when = "2024-01-02"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.cap-primitives]]
 version = "3.0.0"
 when = "2024-01-11"
@@ -522,13 +301,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.cap-rand]]
-version = "2.0.1"
-when = "2024-01-02"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.cap-rand]]
 version = "3.0.0"
 when = "2024-01-11"
@@ -536,13 +308,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.cap-std]]
-version = "2.0.1"
-when = "2024-01-02"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.cap-std]]
 version = "3.0.0"
 when = "2024-01-11"
@@ -550,13 +315,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.cap-time-ext]]
-version = "2.0.1"
-when = "2024-01-02"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.cap-time-ext]]
 version = "3.0.0"
 when = "2024-01-11"
@@ -600,104 +358,104 @@ user-login = "jrmuizel"
 user-name = "Jeff Muizelaar"
 
 [[publisher.cranelift]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-bforest]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-codegen]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-codegen-meta]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-codegen-shared]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-control]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-entity]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-frontend]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-interpreter]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-isle]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-jit]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-module]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-native]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-object]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-reader]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-serde]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.cranelift-wasm]]
-version = "0.104.0"
-when = "2024-01-25"
+version = "0.104.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
@@ -771,13 +529,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.io-lifetimes]]
-version = "2.0.2"
-when = "2023-06-30"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.io-lifetimes]]
 version = "2.0.3"
 when = "2023-12-01"
@@ -883,13 +634,6 @@ user-id = 189
 user-login = "BurntSushi"
 user-name = "Andrew Gallant"
 
-[[publisher.rustix]]
-version = "0.38.28"
-when = "2023-12-09"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.rustix]]
 version = "0.38.31"
 when = "2024-02-01"
@@ -966,13 +710,6 @@ user-id = 3618
 user-login = "dtolnay"
 user-name = "David Tolnay"
 
-[[publisher.system-interface]]
-version = "0.26.1"
-when = "2024-01-02"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.system-interface]]
 version = "0.27.1"
 when = "2024-02-13"
@@ -980,13 +717,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.target-lexicon]]
-version = "0.12.12"
-when = "2023-10-19"
-user-id = 6825
-user-login = "sunfishcode"
-user-name = "Dan Gohman"
-
 [[publisher.target-lexicon]]
 version = "0.12.13"
 when = "2024-01-02"
@@ -1065,8 +795,8 @@ user-login = "BurntSushi"
 user-name = "Andrew Gallant"
 
 [[publisher.wasi-common]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
@@ -1105,20 +835,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wasm-encoder]]
-version = "0.38.1"
-when = "2023-11-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
-[[publisher.wasm-encoder]]
-version = "0.41.0"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wasm-encoder]]
 version = "0.41.2"
 when = "2024-02-12"
@@ -1126,13 +842,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wasm-metadata]]
-version = "0.10.17"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wasm-metadata]]
 version = "0.10.20"
 when = "2024-02-12"
@@ -1140,13 +849,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wasm-mutate]]
-version = "0.2.46"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wasm-mutate]]
 version = "0.2.48"
 when = "2024-02-12"
@@ -1154,13 +856,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wasm-smith]]
-version = "0.15.1"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wasm-smith]]
 version = "0.16.1"
 when = "2024-02-12"
@@ -1168,20 +863,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wasmparser]]
-version = "0.118.1"
-when = "2023-11-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
-[[publisher.wasmparser]]
-version = "0.121.0"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wasmparser]]
 version = "0.121.2"
 when = "2024-02-12"
@@ -1189,13 +870,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wasmprinter]]
-version = "0.2.78"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wasmprinter]]
 version = "0.2.80"
 when = "2024-02-12"
@@ -1204,156 +878,149 @@ user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
 [[publisher.wasmtime]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-asm-macros]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-cache]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-cli]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-cli-flags]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-component-macro]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-component-util]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-cranelift]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-cranelift-shared]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-environ]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-explorer]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-fiber]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-jit-debug]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-jit-icache-coherence]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-runtime]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-types]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-wasi]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-wasi-http]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-wasi-nn]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-wasi-threads]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-wast]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-winch]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-wit-bindgen]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wasmtime-wmemcheck]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
-[[publisher.wast]]
-version = "70.0.2"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wast]]
 version = "71.0.1"
 when = "2024-02-12"
@@ -1361,13 +1028,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wat]]
-version = "1.0.85"
-when = "2024-01-29"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wat]]
 version = "1.0.88"
 when = "2024-02-12"
@@ -1376,20 +1036,20 @@ user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
 [[publisher.wiggle]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wiggle-generate]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
 [[publisher.wiggle-macro]]
-version = "17.0.0"
-when = "2024-01-25"
+version = "17.0.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
@@ -1408,18 +1068,11 @@ user-login = "BurntSushi"
 user-name = "Andrew Gallant"
 
 [[publisher.winch-codegen]]
-version = "0.15.0"
-when = "2024-01-25"
+version = "0.15.1"
+when = "2024-02-07"
 user-id = 73222
 user-login = "wasmtime-publish"
 
-[[publisher.windows-core]]
-version = "0.51.1"
-when = "2023-08-17"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows-core]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1448,13 +1101,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows-targets]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows-targets]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1469,13 +1115,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows_aarch64_gnullvm]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows_aarch64_gnullvm]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1490,13 +1129,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows_aarch64_msvc]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows_aarch64_msvc]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1511,13 +1143,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows_i686_gnu]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows_i686_gnu]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1532,13 +1157,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows_i686_msvc]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows_i686_msvc]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1553,13 +1171,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows_x86_64_gnu]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows_x86_64_gnu]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1574,13 +1185,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows_x86_64_gnullvm]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows_x86_64_gnullvm]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1595,13 +1199,6 @@ user-id = 64539
 user-login = "kennykerr"
 user-name = "Kenny Kerr"
 
-[[publisher.windows_x86_64_msvc]]
-version = "0.48.5"
-when = "2023-08-18"
-user-id = 64539
-user-login = "kennykerr"
-user-name = "Kenny Kerr"
-
 [[publisher.windows_x86_64_msvc]]
 version = "0.52.0"
 when = "2023-11-15"
@@ -1623,13 +1220,6 @@ user-id = 6825
 user-login = "sunfishcode"
 user-name = "Dan Gohman"
 
-[[publisher.wit-bindgen]]
-version = "0.15.0"
-when = "2023-11-27"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wit-bindgen]]
 version = "0.17.0"
 when = "2024-02-05"
@@ -1637,13 +1227,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wit-bindgen-core]]
-version = "0.15.0"
-when = "2023-11-27"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wit-bindgen-core]]
 version = "0.17.0"
 when = "2024-02-05"
@@ -1651,13 +1234,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wit-bindgen-rust]]
-version = "0.15.0"
-when = "2023-11-27"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wit-bindgen-rust]]
 version = "0.17.0"
 when = "2024-02-05"
@@ -1665,13 +1241,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wit-bindgen-rust-macro]]
-version = "0.15.0"
-when = "2023-11-27"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wit-bindgen-rust-macro]]
 version = "0.17.0"
 when = "2024-02-05"
@@ -1679,13 +1248,6 @@ user-id = 1
 user-login = "alexcrichton"
 user-name = "Alex Crichton"
 
-[[publisher.wit-component]]
-version = "0.18.2"
-when = "2023-11-20"
-user-id = 1
-user-login = "alexcrichton"
-user-name = "Alex Crichton"
-
 [[publisher.wit-component]]
 version = "0.20.1"
 when = "2024-01-29"
@@ -2318,12 +1880,6 @@ criteria = "safe-to-deploy"
 delta = "3.6.0 -> 3.8.0"
 aggregated-from = "https://hg.mozilla.org/mozilla-central/raw-file/tip/supply-chain/audits.toml"
 
-[[audits.mozilla.audits.toml]]
-who = "Bobby Holley <bobbyholley@gmail.com>"
-criteria = "safe-to-deploy"
-delta = "0.5.7 -> 0.5.9"
-aggregated-from = "https://hg.mozilla.org/mozilla-central/raw-file/tip/supply-chain/audits.toml"
-
 [[audits.mozilla.audits.unicode-normalization]]
 who = "Mike Hommey <mh+mozilla@glandium.org>"
 criteria = "safe-to-deploy"


Test patch:
diff --git a/cranelift/jit/tests/basic.rs b/cranelift/jit/tests/basic.rs
index a6e5a0464..4969b2cca 100644
--- a/cranelift/jit/tests/basic.rs
+++ b/cranelift/jit/tests/basic.rs
@@ -213,3 +213,27 @@ fn libcall_function() {
 
     module.finalize_definitions().unwrap();
 }
+
+// This used to cause UB. See https://github.com/bytecodealliance/wasmtime/issues/7918.
+#[test]
+fn empty_data_object() {
+    let mut flag_builder = settings::builder();
+    flag_builder.set("use_colocated_libcalls", "false").unwrap();
+    // FIXME set back to true once the x64 backend supports it.
+    flag_builder.set("is_pic", "false").unwrap();
+    let isa_builder = cranelift_native::builder().unwrap_or_else(|msg| {
+        panic!("host machine is not supported: {}", msg);
+    });
+    let isa = isa_builder
+        .finish(settings::Flags::new(flag_builder))
+        .unwrap();
+    let mut module = JITModule::new(JITBuilder::with_isa(isa, default_libcall_names()));
+
+    let data_id = module
+        .declare_data("empty", Linkage::Export, false, false)
+        .unwrap();
+
+    let mut data = DataDescription::new();
+    data.define(Box::new([]));
+    module.define_data(data_id, &data).unwrap();
+}