Multiple soundness issues in cgc
Moderate severity
GitHub Reviewed
Published
Aug 25, 2021
to the GitHub Advisory Database
•
Updated Jun 13, 2023
Description
Published by the National Vulnerability Database
Aug 8, 2021
Reviewed
Aug 18, 2021
Published to the GitHub Advisory Database
Aug 25, 2021
Last updated
Jun 13, 2023
Affected versions of this crate have the following issues:
Ptr
implementsSend
andSync
for all types, this can lead to dataraces by sending non-thread safe types across threads.
Ptr::get
violates mutable alias rules by returning multiple mutablereferences to the same object.
Ptr::write
uses non-atomic writes to the underlying pointer. This meansthat when used across threads it can lead to data races.
References