Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RUSTSEC-2025-0023: Broadcast channel calls clone in parallel, but does not require Sync #5934

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
github-actions bot opened this issue Apr 8, 2025 · 0 comments

Comments

@github-actions
Copy link

github-actions bot commented Apr 8, 2025

Broadcast channel calls clone in parallel, but does not require Sync

Details
Status unsound
Package tokio
Version 1.38.0
URL tokio-rs/tokio#7232
Date 2025-04-07

The broadcast channel internally calls clone on the stored value when
receiving it, and only requires T:Send. This means that using the broadcast
channel with values that are Send but not Sync can trigger unsoundness if
the clone implementation makes use of the value being !Sync.

Thank you to Austin Bonander for finding and reporting this issue.

See advisory page for additional details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants