Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 659ca76

Browse files
committed
bug: update crossbeam-channel
Impact The affected version of this crate's the bounded channel incorrectly assumes that Vec::from_iter has allocated capacity that same as the number of iterator elements. Vec::from_iter does not actually guarantee that and may allocate extra memory. The destructor of the bounded channel reconstructs Vec from the raw pointer based on the incorrect assumes described above. This is unsound and causing deallocation with the incorrect capacity when Vec::from_iter has allocated different sizes with the number of iterator elements. Patches This has been fixed in crossbeam-channel 0.4.4. We recommend users to upgrade to 0.4.4. References See crossbeam-rs/crossbeam#533, crossbeam-rs/crossbeam#539, and rustsec/advisory-db#425 for more details.
1 parent 975bce4 commit 659ca76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ edition = "2018"
1313
[dependencies]
1414
arc-swap = "0.4.2"
1515
futures = { version = "^0.3.1" }
16-
crossbeam-channel = "0.3.9"
16+
crossbeam-channel = "0.5.4"
1717
log = "0.4.6"
1818

1919
[dev-dependencies]

0 commit comments

Comments
 (0)