MCPcopy Index your code
hub / github.com/MultiFuzz/MultiFuzz / error

Method error

hail-fuzz/src/debugging/check.rs:150–164  ·  view source on GitHub ↗
(&self, cpu: &mut icicle_vm::cpu::Cpu, msg: &str, code: u64)

Source from the content-addressed store, hash-verified

148 }
149
150 fn error(&self, cpu: &mut icicle_vm::cpu::Cpu, msg: &str, code: u64) {
151 if let Some(output) = self.output.as_ref() {
152 let mut out = output.lock().unwrap();
153 if self.colorize {
154 writeln!(out, "\n\x1b[0;31m[{}] {msg}\x1b[0m", cpu.icount()).unwrap();
155 }
156 else {
157 out.write_all(msg.as_bytes()).unwrap()
158 }
159 }
160
161 if self.canary {
162 cpu.exception = Exception::new(ExceptionCode::Environment, code);
163 }
164 }
165}
166
167const fn binary_id(dataset_code: u64, binary_id: u8) -> u64 {

Callers 10

debug_cncFunction · 0.45
debug_gatewayFunction · 0.45
debug_heatpressFunction · 0.45
debug_zephyr_socket_canFunction · 0.45
debug_gps_trackerFunction · 0.45
debug_usbFunction · 0.45
debug_xml_parserFunction · 0.45
debug_lowpanFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected