Skip to content

Crashing rustbuster fuzz when matching binary files. #49

@Shaddy

Description

@Shaddy

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions