(&mut self, str_var: String, ty: &str)
| 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()); |
no test coverage detected