rustbuster
rustbuster copied to clipboard
Crashing `rustbuster fuzz` when matching binary files.
I'm getting the following error, it prevents rusbuster fuzz
from continuing.
thread 'tokio-runtime-worker-2' panicked at 'called `Result::unwrap()` on an `Err` value: FromUtf8Error { bytes: [137, ..., 123, 133, 0, 0, 0, 0, 73, 69, 78, 68, 174, 66, 96, 130], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }', src/fuzzbuster/mod.rs:296:59
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
It's crashing when e.g. a binary file .png
is found.
I've changed String::from_utf8 with the unchecked
version, and it works fine.
let body = unsafe { String::from_utf8_unchecked(vec) };
But not sure if you want to follow this route, let me know if you need any further details.
Thanks!
@Shaddy Have you got a command line that demos this? I haven't been able to get fuzz working at all (see #53).