Example `bananas.rs` not working

Open
#134 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, rust
Domain
testing-qa

Research direction

Start with the bananas.rs example and run it through libfuzzer_sys on the reported Rust and macOS versions, checking whether it detects the same bug as the C++ port. The issue is resolved when the Rust example reliably finds the reported bug, with the cause and any version-specific behavior documented.

Written by the indexing model from the issue text.

Description

Hi, I've been playing around with libfuzzer_sys and wanted to start from the basic examples, it seems that example that checks bananas.rs does not actually find the bug. I've ported the example to C++ and libfuzzer finds it instantly. I'm on an M4 Max with OSX Sequoia 15.5, my rustc version is rustc 1.91.0-nightly (f34ba774c 2025-08-03). I can provide other relevant information if needed.

Dominant language
C++
Stars
267
Forks
51
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-fuzz/libfuzzer

All issues in rust-fuzz/libfuzzer

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.