You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup fuzzing using the fuzz!(|param: Type| { ... }); template (where Type implements Arbitrary), however I keep getting an error from within the macro.
Because the closure inside the and_then is supposed to return the same type as RingBuffer::new, the map_err makes my compiler grumpy since it returns &str instead of BufferError.
expected enum arbitrary::BufferError, found &str
help: try using a variant of the expected enum: Ok(Arbitrary :: arbitrary (& mut b) . map_err (| _ | ""))
My use case is pretty simple:
fuzz!(|key_name: String| {
let mut test_client = TestClient::new();
if let Err(ResponseStatus::ConnectionError) = test_client.create_rsa_sign_key(key_name.clone()) {
panic!("Died for input: {}", key_name);
}
});
Not sure if this is because of me misunderstanding how the afl crate works or if this is a legit bug.
PS: I'm importing and using arbitrary: "0.2.0"
The text was updated successfully, but these errors were encountered:
Hello!
I'm trying to setup fuzzing using the
fuzz!(|param: Type| { ... });
template (whereType
implementsArbitrary
), however I keep getting an error from within the macro.The failure points to the following snippet:
Because the closure inside the
and_then
is supposed to return the same type asRingBuffer::new
, themap_err
makes my compiler grumpy since it returns&str
instead ofBufferError
.My use case is pretty simple:
Not sure if this is because of me misunderstanding how the
afl
crate works or if this is a legit bug.PS: I'm importing and using
arbitrary: "0.2.0"
The text was updated successfully, but these errors were encountered: