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

Function find_elf_for_path

icicle-cortexm/src/lib.rs:373–383  ·  view source on GitHub ↗

Attempts to find an ELF binary with the same base name as target path to load debug info from.

(path: PathBuf)

Source from the content-addressed store, hash-verified

371
372/// Attempts to find an ELF binary with the same base name as target path to load debug info from.
373fn find_elf_for_path(path: PathBuf) -> Option<PathBuf> {
374 let elf_path = path.with_extension("elf");
375 if elf_path.exists() {
376 return Some(elf_path);
377 }
378 let out_path = path.with_extension("out");
379 if out_path.exists() {
380 return Some(out_path);
381 }
382 None
383}
384
385fn write_raw_bytes(
386 vm: &mut icicle_vm::Vm,

Callers 1

fuzzware_initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected