Skip to content

Commit 71e68c6

Browse files
committed
Update dlmalloc dependency of libstd
This primarily pulls in alexcrichton/dlmalloc-rs#55 and alexcrichton/dlmalloc-rs#54 to address #144199. Notably the highest byte in the wasm address space is no longer allocatable and additionally the allocator internally uses `wrapping_add` instead of `add` on pointers since on 32-bit platforms offsets might be larger than half the address space. Closes #144199
1 parent 7ec8c89 commit 71e68c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/Cargo.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ dependencies = [
7878

7979
[[package]]
8080
name = "dlmalloc"
81-
version = "0.2.9"
81+
version = "0.2.10"
8282
source = "registry+https://github.com/rust-lang/crates.io-index"
83-
checksum = "d01597dde41c0b9da50d5f8c219023d63d8f27f39a27095070fd191fddc83891"
83+
checksum = "fa3a2dbee57b69fbb5dbe852fa9c0925697fb0c7fbcb1593e90e5ffaedf13d51"
8484
dependencies = [
8585
"cfg-if",
8686
"libc",

library/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ rand = { version = "0.9.0", default-features = false, features = ["alloc"] }
6565
rand_xorshift = "0.4.0"
6666

6767
[target.'cfg(any(all(target_family = "wasm", target_os = "unknown"), target_os = "xous", all(target_vendor = "fortanix", target_env = "sgx")))'.dependencies]
68-
dlmalloc = { version = "0.2.4", features = ['rustc-dep-of-std'] }
68+
dlmalloc = { version = "0.2.10", features = ['rustc-dep-of-std'] }
6969

7070
[target.x86_64-fortanix-unknown-sgx.dependencies]
7171
fortanix-sgx-abi = { version = "0.5.0", features = [

0 commit comments

Comments
 (0)