2 matches found
DHI-B73T-OSJP-YPUZ-UMGE The variance of `RefSwap` and `OptionRefSwap` were incorrect, possibly allowing use-after-free.
The variance of RefSwap and OptionRefSwap were incorrect, possibly allowing use-after-free. OptionRefSwap::intoinner did not check for null. The fix is to make RefSwap and OptionRefSwap invariant, and to change OptionRefSwap::intoinner to return an option. It is available in version 0.1.3. If you...
`cell-project` used incorrect variance when projecting through `&Cell<T>`
Overview The issue lies in the implementation of the cellproject macro which used field as const instead of field as mut . The problem being that const T is covariant in T while mut T is invariant in T. Keep in mind that &Cell is invariant in T, so casting to const T relaxed the variance, and lea...