|
|
|
|
|
by roblabla
1527 days ago
|
|
Problem is, there's lots of unsafe code that casts *mut T to &mut T (usually after checking T is valid and whatnot). If &mut T didn't use capabilities, this kind of unsafe code would end up not taking advantage of the CHERI capability checking, which would be unfortunate. |
|
The raw pointer would be synthesised with the capability for only the pointee of the original reference.