Skip to content

Improve array len fuzzing#495

Merged
juntyr merged 2 commits into
ron-rs:masterfrom
juntyr:fuzz-array-len
Sep 3, 2023
Merged

Improve array len fuzzing#495
juntyr merged 2 commits into
ron-rs:masterfrom
juntyr:fuzz-array-len

Conversation

@juntyr

@juntyr juntyr commented Sep 3, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown

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