MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / parse_call_stack_line

Function parse_call_stack_line

src/program/libfuzzer.rs:833–839  ·  view source on GitHub ↗
(line: &str)

Source from the content-addressed store, hash-verified

831 }
832
833 fn parse_call_stack_line(line: &str) -> Result<(String, String)> {
834 let mut de = Deserializer::from_input(line);
835 de.consume_token_until(" in ")?;
836 let trap_func = de.eat_token_until("/")?.trim();
837 let trap_loc = de.remain().trim();
838 Ok((trap_func.to_string(), trap_loc.to_string()))
839 }
840
841 fn parse_call_stack_from_err_msg(fuzz_entry: &Path) -> Result<Vec<(String, String)>> {
842 let fuzz_log: PathBuf = [PathBuf::from(fuzz_entry), "fuzz.log".into()]

Callers 1

Calls 3

consume_token_untilMethod · 0.80
eat_token_untilMethod · 0.80
remainMethod · 0.80

Tested by

no test coverage detected