Skip to content

Fuzzing function generator: bound the debug-labels size.#73

Merged
cfallin merged 1 commit intobytecodealliance:mainfrom
cfallin:fuzz-generator-bounded-debug-labels
Aug 31, 2022
Merged

Fuzzing function generator: bound the debug-labels size.#73
cfallin merged 1 commit intobytecodealliance:mainfrom
cfallin:fuzz-generator-bounded-debug-labels

Conversation

@cfallin
Copy link
Copy Markdown
Member

@cfallin cfallin commented Aug 31, 2022

Currently there is a loop that takes a variable step toward an end point
with an integer from Arbitrary; if this integer is always zero (for
example due to end-of-input?) then we add debug labels to a particular
input SSA value forever. This eventually causes an OOM crash. This PR
bounds the loop at a reasonable count (10) instead.

Currently there is a loop that takes a variable step toward an end point
with an integer from `Arbitrary`; if this integer is always zero (for
example due to end-of-input?) then we add debug labels to a particular
input SSA value forever. This eventually causes an OOM crash.  This PR
bounds the loop at a reasonable count (10) instead.
@cfallin cfallin requested a review from fitzgen August 31, 2022 16:51
@cfallin cfallin merged commit be47ac3 into bytecodealliance:main Aug 31, 2022
@cfallin cfallin deleted the fuzz-generator-bounded-debug-labels branch August 31, 2022 17:10
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