This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
ArcGuard's Send and Sync should have bounds on RC #33
Labels
api-breaking
Pull request contains (or issue may require) an API-breaking change
bug
Something isn't working
P1
Priority 1
Hi there, we (Rust group @sslab-gatech) are scanning crates on crates.io for potential soundness bugs. We noticed that
async_coap::arc_guard::ArcGuard
implementsSend
andSync
so long asT: Send
andT: Sync
.rust-async-coap/async-coap/src/arc_guard.rs
Lines 163 to 164 in 6a7b592
However, this should also probably be bounded by
RC: Send
andRC: Sync
, otherwise it's possible to smuggle across non-Send types across thread boundaries. Here's a proof-of-concept that segfaults safe rust code:Output:
The text was updated successfully, but these errors were encountered: