-
Notifications
You must be signed in to change notification settings - Fork 10
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
soundness hole with types that are Sync + !Send #9
Comments
I need to think about this a bit more but I believe you're correct. |
Any news? I see 66bbfc2, but I believe |
+1 This is unsound, it's better to fix the issue and yank old releases ;) |
Tamschi
referenced
this issue
in Tamschi/try-lazy-init
Jan 8, 2021
…ansform<T, U>` As per #9, a `Send` bound is required on `U` to make sure references aren't sent to threads other than the one the `U` was created on.
Merged
niklasf
added a commit
to niklasf/advisory-db
that referenced
this issue
Jan 17, 2021
niklasf
added a commit
to niklasf/advisory-db
that referenced
this issue
Jan 17, 2021
Shnatsel
added a commit
to rustsec/advisory-db
that referenced
this issue
Jan 18, 2021
lazy-init: Missing Send bound for Lazy (khuey/lazy-init#9)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I believe that the
unsafe impl Sync
needs to also require Send. Otherwise it is possible to transfer non-Send values between threads.Similar issues in other crates:
The text was updated successfully, but these errors were encountered: