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

Method append_string_var

src/program/shim.rs:104–112  ·  view source on GitHub ↗
(&mut self, str_var: String, ty: &str)

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn append_string_var(&mut self, str_var: String, ty: &str) {
105 let var = format!(
106 "FDPConsumeRandomLengthString({ty}, fuzz_str_{0}, fuzz_str_sz_{0}, fdp);",
107 self.get_fuzz_id_inc()
108 );
109 self.fuzz_stmts.push(var);
110 self.append_fuzz_seeds(str_var.as_bytes());
111 self.append_magic_bytes();
112 }
113
114 fn append_char_var(&mut self, char: u8) {
115 let var = format!("FDPConsumeChar(fuzz_char_{}, fdp);", self.get_fuzz_id_inc());

Callers 3

Calls 3

append_fuzz_seedsMethod · 0.80
append_magic_bytesMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected