1 result · Feed
-
Unscored —
UB can be reached from safe code
The variance of `RefSwap` and `OptionRefSwap` were incorrect, possibly allowing use-after-free. `OptionRefSwap::into_inner` did not check for null. The fix is to make `RefSwap` and `OptionRefSwap` invariant, and to change `OptionRefSwap::into_inner` to return…