rust-fuzz / rust-fuzz/arbitrary

Arbitrary type with a borrow that's not &[u8]

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
880
Forks
93
PR merge metrics
No merged PRs in 30d

Description

Hello,

Is it possible to add, or is there a workaround for creating an Arbitrary type that has a borrow that's not &'a [u8].

For example:

struct HasBorrow<'a> {
    borrow: &'a [u64],
}

Cheers

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.

Research direction

The issue names no files, tests, or entry points. Start by reviewing the crate’s existing support for borrowed data and the Arbitrary behavior around &'a [u8], then determine whether the &'a [u64] example can be supported or needs a documented workaround. Done means the supported approach or limitation is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.