pub struct IndirectCallGuard;
Expand description
CFI verification for indirect function calls.
Implementations§
Source§impl IndirectCallGuard
impl IndirectCallGuard
Sourcepub fn verify_call_target(target: *const ()) -> bool
pub fn verify_call_target(target: *const ()) -> bool
Verify indirect call target is valid.
Sourcepub unsafe fn protected_call<F, R>(
target: *const (),
f: F,
) -> Result<R, ThreadError>where
F: FnOnce() -> R,
pub unsafe fn protected_call<F, R>(
target: *const (),
f: F,
) -> Result<R, ThreadError>where
F: FnOnce() -> R,
Protect indirect call with CFI verification.
Auto Trait Implementations§
impl Freeze for IndirectCallGuard
impl RefUnwindSafe for IndirectCallGuard
impl Send for IndirectCallGuard
impl Sync for IndirectCallGuard
impl Unpin for IndirectCallGuard
impl UnwindSafe for IndirectCallGuard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more