Skip to content
New issue

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

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

Already on GitHub? # to your account

RUSTSEC-2020-0140: Shared can cause a data race #1194

Closed
github-actions bot opened this issue Jan 30, 2024 · 0 comments
Closed

RUSTSEC-2020-0140: Shared can cause a data race #1194

github-actions bot opened this issue Jan 30, 2024 · 0 comments

Comments

@github-actions
Copy link
Contributor

Details
Package model
Version 0.1.0
Warning unsound
URL spacejam/model#3
Patched Versions n/a
Aliases CVE-2020-36460, GHSA-mxv6-q98x-h958

Shared data structure in model crate implements Send and Sync traits regardless of the inner type.
This allows safe Rust code to trigger a data race, which is undefined behavior in Rust.

Users are advised to treat Shared as an unsafe type.
It should not be used outside of the testing context,
and care must be taken so that the testing code does not have a data race
besides a race condition that is expected to be caught by the test.

Check the Rustonomicon for the difference between
a data race and a general race condition.

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

No branches or pull requests

1 participant