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

Method get_transform_len

src/program/transform.rs:166–170  ·  view source on GitHub ↗

get the number of fuzzable arguments wait to be transformed to receive fuzzer's bytes in this program.

(&mut self, constraints: &APIConstraints)

Source from the content-addressed store, hash-verified

164
165 /// get the number of fuzzable arguments wait to be transformed to receive fuzzer's bytes in this program.
166 pub fn get_transform_len(&mut self, constraints: &APIConstraints) -> Result<usize> {
167 let visitor = self.get_new_visitor()?;
168 let fuzz_variants = visitor.collect_fuzzable_variants(&visitor, constraints);
169 Ok(fuzz_variants.len())
170 }
171
172 pub fn preprocess(&mut self) -> Result<()> {
173 self.handle_file_constraint("data", "size")?;

Callers 2

transformFunction · 0.80

Calls 2

get_new_visitorMethod · 0.80

Tested by

no test coverage detected