MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / Context

Class Context

icicle-cortexm/src/unicorn_api.rs:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18type uc_err = fuzzware::uc_err::Type;
19
20pub struct Context {
21 /// Pointer to the VM, can be null.
22 pub vm: *mut Vm,
23
24 /// The vtable passed to C code to allow it to call emulator APIs.
25 pub vtable: Option<Box<fuzzware::uc_engine>>,
26
27 /// A reference to the block based timer.
28 pub timer: Option<BlockTimerRef>,
29
30 /// A handle to the input handler.
31 pub io_handle: Option<IoHandler>,
32
33 /// A mapping from Unicorn register indices to VarNodes allocated the associated registers.
34 pub uc_vars: Vec<pcode::VarNode>,
35}
36
37impl Context {
38 pub fn new(vm: &mut Vm) -> anyhow::Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected