Skip to content

Ideas for fuzzer improvements #32

@cr-tk

Description

@cr-tk

As part of #31, we looked at fuzz_xml.rs and have some improvement suggestions.

Notably, the cargo-fuzz configuration is quite old, and depends on a long-deprecated version of libfuzzer-sys, which could be replaced by a normal libfuzzer-sys crate reference:

[dependencies.libfuzzer-sys]
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"

Additionally, we've observed that the use of a fuzzer dictionary with XML snippets significantly helps with input synthesis and fuzzer coverage. Some public example collections to use with the -dict= parameter:

fuzz_xml.rs has an intentional panic condition to detect endless loops, which runs into false positives when allowing long inputs (no corresponding -max_len= restriction), which could be documented as a known limitation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions