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

Method normal_transform

src/program/libfuzzer.rs:115–125  ·  view source on GitHub ↗

Only transform the program to the Libfuzzer kind with the minimal pre-procession.

(&self)

Source from the content-addressed store, hash-verified

113
114 // Only transform the program to the Libfuzzer kind with the minimal pre-procession.
115 fn normal_transform(&self) -> Result<()> {
116 log::info!("Transform the correct programs to fuzzers!");
117
118 for program in &self.programs {
119 log::trace!("transform {program:?}");
120 let mut transformer = Transformer::new(program, &self.deopt)?;
121 transformer.add_fd_sanitizer()?;
122 transformer.preprocess()?;
123 }
124 Ok(())
125 }
126
127 fn minimize_fuzzer_corpus_before_constraint_infer(&self, program_path: &Path) -> Result<PathBuf> {
128 let executor = Executor::new(&self.deopt)?;

Callers 1

transformMethod · 0.80

Calls 2

add_fd_sanitizerMethod · 0.80
preprocessMethod · 0.80

Tested by

no test coverage detected