Skip to content

AVRO-3575: Rust: add fuzz harness#1761

Merged
martin-g merged 3 commits intoapache:masterfrom
evanrichter:patch1
Jul 12, 2022
Merged

AVRO-3575: Rust: add fuzz harness#1761
martin-g merged 3 commits intoapache:masterfrom
evanrichter:patch1

Conversation

@evanrichter
Copy link
Contributor

@evanrichter evanrichter commented Jul 11, 2022

The cargo-fuzz harness can be run with cargo +nightly fuzz run roundtrip from the lang/rust/avro folder.

The second commit fixes 1 panic, 1 oom, and 1 infinite loop that the fuzzer found.

Jira

Tests

  • My PR adds fuzz testing
  • The code fixes do not break cargo test
  • The code fixes pass fuzz testing and fix all panic/oom/timeout

Commits

  • My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters (not including Jira issue reference)
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it.
    • No new functionality

@github-actions github-actions bot added the Rust label Jul 11, 2022
@martin-g martin-g mentioned this pull request Jul 11, 2022
4 tasks
@martin-g martin-g changed the title Rust: add fuzz harness AVRO-3575: Rust: add fuzz harness Jul 11, 2022
…publish = false

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
@martin-g martin-g merged commit eb24775 into apache:master Jul 12, 2022
martin-g added a commit that referenced this pull request Jul 12, 2022
* AVRO-3575: Rust: cargo fuzz harness

* AVRO-3575: Rust: Fuzzing fixes

* AVRO-3575: Add ASLv2 licences and mark other test related modules as publish = false

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>

Co-authored-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
(cherry picked from commit eb24775)
@martin-g
Copy link
Member

Thank you for the contribution and the fixes, @evanrichter !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants