Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve array len fuzzing #495

Merged
merged 2 commits into from
Sep 3, 2023
Merged

Improve array len fuzzing #495

merged 2 commits into from
Sep 3, 2023

Conversation

juntyr
Copy link
Member

@juntyr juntyr commented Sep 3, 2023

And yet another attempt at fixing array len fuzzing so we won't overload the fuzzer with OOM or timeouts. Now, the array length is produced like a Vec len but only once for the first instantiation.

To ensure that [[(); N]; M] costs the fuzzer NxM units of input instead of just N+M, the arbitrary value production now imposes a minimal penalty on unit/empty values. While this wastes some input, it (hopefully) ensures that the fuzzed values do not explode, since they are bounded by the input.

* [ ] I've included my change in CHANGELOG.md

@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (e3da023) 98.14% compared to head (c9670ca) 98.14%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #495   +/-   ##
=======================================
  Coverage   98.14%   98.14%           
=======================================
  Files          78       78           
  Lines       10308    10308           
=======================================
  Hits        10117    10117           
  Misses        191      191           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@juntyr juntyr merged commit cc02072 into ron-rs:master Sep 3, 2023
@juntyr juntyr deleted the fuzz-array-len branch September 3, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants