| /wasmtime-44.0.1/crates/fuzzing/src/generators/ |
| H A D | memory.rs | 3 use arbitrary::{Arbitrary, Unstructured}; 21 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 22 let image = HeapImage::arbitrary(u)?; in arbitrary() 38 config: u.arbitrary()?, in arbitrary() 40 offset: u.arbitrary()?, in arbitrary() 80 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 82 let maximum = if u.arbitrary()? { in arbitrary() 87 let memory64 = u.arbitrary()?; in arbitrary() 130 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 154 ) -> arbitrary::Result<Option<u64>> { in interesting_virtual_memory_size() [all …]
|
| H A D | module.rs | 3 use arbitrary::{Arbitrary, Unstructured}; 32 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<ModuleConfig> { in arbitrary() method 33 let mut config = wasm_smith::Config::arbitrary(u)?; in arbitrary() 56 config.custom_page_sizes_enabled = u.arbitrary()?; in arbitrary() 57 config.wide_arithmetic_enabled = u.arbitrary()?; in arbitrary() 106 ) -> arbitrary::Result<wasm_smith::Module> { in generate()
|
| H A D | api.rs | 18 use arbitrary::{Arbitrary, Unstructured}; 66 fn arbitrary(input: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 69 let swarm = Swarm::arbitrary(input)?; in arbitrary() 72 let config = Config::arbitrary(input)?; in arbitrary() 91 let mut choices: Vec<fn(_, &mut Scope) -> arbitrary::Result<ApiCall>> = vec![]; in arbitrary() 133 let nth = usize::arbitrary(input)?; in arbitrary()
|
| H A D | wast_test.rs | 3 use arbitrary::{Arbitrary, Unstructured}; 16 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method
|
| H A D | async_config.rs | 1 use arbitrary::{Arbitrary, Unstructured}; 41 fn arbitrary(_: &mut Unstructured<'a>) -> arbitrary::Result<AsyncConfig> { in arbitrary() method
|
| H A D | value.rs | 3 use arbitrary::{Arbitrary, Unstructured}; 47 ) -> arbitrary::Result<Self> { in arbitrary_of_type() 103 let ty: DiffSimdTy = u.arbitrary()?; in arbitrary_of_type() 196 arbitrary::Result::Ok(val) in arbitrary_of_type() 210 ) -> arbitrary::Result<T> in biased_arbitrary_value() 214 let pick_from_known_values: bool = u.arbitrary()?; in biased_arbitrary_value() 218 u.arbitrary() in biased_arbitrary_value() 223 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 224 let ty: DiffValueType = u.arbitrary()?; in arbitrary()
|
| H A D | codegen_settings.rs | 3 use arbitrary::{Arbitrary, Unstructured}; 48 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 88 return Err(arbitrary::Error::EmptyChoose) in arbitrary()
|
| /wasmtime-44.0.1/pulley/src/ |
| H A D | imms.rs | 12 impl<'a> arbitrary::Arbitrary<'a> for PcRelOffset { 13 fn arbitrary(_u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 57 impl<'a> arbitrary::Arbitrary<'a> for U6 { 58 fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 59 let byte = u.arbitrary::<u8>()?; in arbitrary()
|
| H A D | regs.rs | 67 #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] 110 #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] 124 #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] 145 #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] 170 #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] 329 impl<'a, R: Reg> arbitrary::Arbitrary<'a> for UpperRegSet<R> { 330 fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 331 ScalarBitSet::arbitrary(u).map(Self::from) in arbitrary() 342 #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] 358 #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] [all …]
|
| /wasmtime-44.0.1/crates/fuzzing/src/oracles/ |
| H A D | component_api.rs | 12 use arbitrary::{Arbitrary, Unstructured}; 39 Type::S8 => Val::S8(input.arbitrary()?), in arbitrary_val() 40 Type::U8 => Val::U8(input.arbitrary()?), in arbitrary_val() 41 Type::S16 => Val::S16(input.arbitrary()?), in arbitrary_val() 42 Type::U16 => Val::U16(input.arbitrary()?), in arbitrary_val() 43 Type::S32 => Val::S32(input.arbitrary()?), in arbitrary_val() 44 Type::U32 => Val::U32(input.arbitrary()?), in arbitrary_val() 45 Type::S64 => Val::S64(input.arbitrary()?), in arbitrary_val() 114 .arbitrary() in arbitrary_val() 206 ) -> arbitrary::Result<()> in static_api_test() [all …]
|
| /wasmtime-44.0.1/fuzz/fuzz_targets/ |
| H A D | component_api.rs | 4 use libfuzzer_sys::{arbitrary, fuzz_target}; 9 fn target(input: &mut arbitrary::Unstructured) -> arbitrary::Result<()> { in target() 10 if input.arbitrary()? { in target() 18 let _ = target(&mut arbitrary::Unstructured::new(bytes));
|
| H A D | cranelift-icache.rs | 14 arbitrary::{self, Arbitrary, Unstructured}, 55 isa::lookup_by_name(target).map_err(|_| arbitrary::Error::IncorrectFormat)?; in generate() 61 .map_err(|_| arbitrary::Error::IncorrectFormat)?; in generate() 65 .map_err(|_| arbitrary::Error::IncorrectFormat)?; in generate() 81 .map_err(|_| arbitrary::Error::IncorrectFormat)?; in generate() 85 .map_err(|_| arbitrary::Error::IncorrectFormat)?; in generate() 100 fn arbitrary(u: &mut Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 101 Self::generate(u).map_err(|_| arbitrary::Error::IncorrectFormat) in arbitrary()
|
| H A D | instantiate-many.rs | 6 use libfuzzer_sys::arbitrary::{Result, Unstructured}; 21 let mut config: generators::Config = u.arbitrary()?; in execute_one() 50 .map(|_| Ok(oracles::Command::Instantiate(u.arbitrary()?))) in execute_one() 56 .map(|_| u.arbitrary()) in execute_one()
|
| H A D | instantiate.rs | 3 use libfuzzer_sys::arbitrary::{Arbitrary, Result, Unstructured}; 17 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method 18 let mut config: Config = u.arbitrary()?; in arbitrary() 23 let timeout = if u.arbitrary()? { in arbitrary()
|
| /wasmtime-44.0.1/cranelift/fuzzgen/src/ |
| H A D | cranelift_arbitrary.rs | 8 use arbitrary::Unstructured; 132 I8 => self.arbitrary::<i8>()? as i128, in datavalue() 133 I16 => self.arbitrary::<i16>()? as i128, in datavalue() 134 I32 => self.arbitrary::<i32>()? as i128, in datavalue() 135 I64 => self.arbitrary::<i64>()? as i128, in datavalue() 136 I128 => self.arbitrary::<i128>()?, in datavalue() 143 F32 => DataValue::F32(Ieee32::with_bits(self.arbitrary::<u32>()?)), in datavalue() 144 F64 => DataValue::F64(Ieee64::with_bits(self.arbitrary::<u64>()?)), in datavalue() 146 DataValue::V128(self.arbitrary::<[u8; 16]>()?) in datavalue()
|
| /wasmtime-44.0.1/cranelift/assembler-x64/src/ |
| H A D | fuzz.rs | 15 use arbitrary::{Arbitrary, Result, Unstructured}; 291 fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 306 fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self> { in arbitrary() method 312 let base = if u.arbitrary()? { in arbitrary() 313 i32::from(u.arbitrary::<i8>()?) in arbitrary() 315 u.arbitrary::<i32>()? in arbitrary() 325 fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self> { in arbitrary() method 328 simm32: AmodeOffset::arbitrary(u)?, in arbitrary() 335 fn arbitrary(_: &mut Unstructured<'_>) -> Result<Self> { in arbitrary() method 341 fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self> { in arbitrary() method [all …]
|
| H A D | imm.rs | 27 #[cfg_attr(any(test, feature = "fuzz"), derive(arbitrary::Arbitrary))] 67 #[cfg_attr(any(test, feature = "fuzz"), derive(arbitrary::Arbitrary))] 112 #[cfg_attr(any(test, feature = "fuzz"), derive(arbitrary::Arbitrary))] 152 #[cfg_attr(any(test, feature = "fuzz"), derive(arbitrary::Arbitrary))] 201 #[cfg_attr(any(test, feature = "fuzz"), derive(arbitrary::Arbitrary))] 245 #[cfg_attr(any(test, feature = "fuzz"), derive(arbitrary::Arbitrary))] 285 #[cfg_attr(any(test, feature = "fuzz"), derive(arbitrary::Arbitrary))]
|
| /wasmtime-44.0.1/cranelift/control/src/ |
| H A D | chaos.rs | 2 use arbitrary::{Arbitrary, Unstructured}; 17 fn arbitrary<'a>(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() method 18 Ok(Self::new(u.arbitrary()?)) in arbitrary() 71 let res = u.arbitrary().unwrap_or_default(); in get_arbitrary()
|
| H A D | zero_sized.rs | 16 impl arbitrary::Arbitrary<'_> for ControlPlane { 17 fn arbitrary(_u: &mut arbitrary::Unstructured<'_>) -> arbitrary::Result<Self> { in arbitrary() method
|
| /wasmtime-44.0.1/pulley/ |
| H A D | Cargo.toml | 16 arbitrary = { workspace = true, optional = true } 31 arbitrary = ["dep:arbitrary", "arbitrary/derive", "std", "cranelift-bitset/arbitrary"]
|
| /wasmtime-44.0.1/cranelift/assembler-x64/ |
| H A D | Cargo.toml | 10 arbitrary = { workspace = true, features = ["derive"], optional = true } 14 arbitrary = { workspace = true, features = ["derive"] } 25 fuzz = ['dep:arbitrary', 'dep:capstone']
|
| /wasmtime-44.0.1/cranelift/bitset/ |
| H A D | Cargo.toml | 16 arbitrary = { workspace = true, optional = true } 23 arbitrary = ["dep:arbitrary"]
|
| /wasmtime-44.0.1/cranelift/control/ |
| H A D | Cargo.toml | 14 arbitrary = { workspace = true, optional = true } 19 # Enable fuzzing support with `arbitrary`. Does not work on `no_std` targets. 20 fuzz = ["dep:arbitrary"]
|
| /wasmtime-44.0.1/fuzz/ |
| H A D | build.rs | 8 use arbitrary::Unstructured; 146 …c_component_api_target(input: &mut libfuzzer_sys::arbitrary::Unstructured) -> libfuzzer_sys::arbit… in write_static_api_tests() 150 use libfuzzer_sys::arbitrary::{self, Arbitrary}; in write_static_api_tests() 183 mut f: impl FnMut(&mut Unstructured<'_>) -> arbitrary::Result<T>, in generate() 192 Err(arbitrary::Error::NotEnoughData) => (), in generate()
|
| /wasmtime-44.0.1/cranelift/bitset/src/ |
| H A D | scalar.rs | 621 impl<'a, T> arbitrary::Arbitrary<'a> for ScalarBitSet<T> 623 T: ScalarBitSetStorage + arbitrary::Arbitrary<'a>, 625 fn arbitrary(u: &mut arbitrary::Unstructured<'a>) -> arbitrary::Result<Self> { in arbitrary() function 626 T::arbitrary(u).map(Self) in arbitrary()
|