-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hi I am trying to use my fuzz harness and had a crash which I would like to minify.
Code is at https://gitlab.com/MTRNord/conduit-fuzz-harness/-/tree/03cade7d643a6cf28ba93c966ae77f5cec82c1a8 (Note there is a file reference in the cargo toml. the rev and url in there however should work though)
The setup is a little funky tbh as I had link failures when trying to do the verification tests so the cfg flags are all over the place. It however compiles just fine (expect ~10-20m compile times due to the upstream package conduit
that I am fuzzing. Its annoying but it is due to codegen sadly.)
Running it with cargo fuzzcheck tests::register --command minify --input-file "fuzz/tests::register/artifacts/35056055153a44e5.json"
fails with the following for me:
➜ conduit-fuzz-harness git:(main) ✗ cargo fuzzcheck tests::register --command minify --input-file "fuzz/tests::register/artifacts/35056055153a44e5.json"
launch with config: "--command read --input-file fuzz/tests::register/artifacts/35056055153a44e5.json --no-in-corpus --no-out-corpus --artifacts fuzz/tests::register/artifacts/35056055153a44e5.minified --no-stats --max-cplx 4096 --stop-after-duration 18446744073709551615 --stop-after-iterations 18446744073709551615 --stop-after-first-failure "
warning: `-Z instrument-coverage` is deprecated; use `-C instrument-coverage`
warning: field is never read: `exp`
--> /opt/dev_env/conduit/src/client_server/session.rs:19:5
|
19 | exp: usize,
| ^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
note: `Claims` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
--> /opt/dev_env/conduit/src/client_server/session.rs:16:10
|
16 | #[derive(Debug, Deserialize)]
| ^^^^^
= note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: field is never read: `statement_ref`
--> /opt/dev_env/conduit/src/database/abstraction/sqlite.rs:22:5
|
22 | pub statement_ref: NonAliasingBox<rusqlite::Statement<'a>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: `conduit` (lib) generated 3 warnings
Compiling conduit-fuzz-harness v0.1.0 (/opt/dev_env/conduit-fuzz-harness)
warning: `conduit-fuzz-harness` (lib test) generated 1 warning (1 duplicate)
Finished release [optimized + debuginfo] target(s) in 12m 35s
Running unittests (target/fuzzcheck/x86_64-unknown-linux-gnu/release/deps/conduit_fuzz_harness-05780ade5151ccef)
running 1 test
test tests::register ... thread 'main' panicked at 'assertion failed: !o.status.success()', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-fuzzcheck-0.10.0/src/lib.rs:175:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The json file I input is:
{"kind":"user","auth":{"session":"","type":"m.login.dummy"},"device_id":"�\u001b���I%b","inhibit_login":false,"initial_device_display_name":"��\u0000���Ŧ.�Oo�JyE1�","password":"��\u000f��","username":"��� }"}
I am not sure why this may be happening. any tips would help.