Skip to content

Fix fuzzbug related to bundle priority ordering. - #20

Merged
cfallin merged 1 commit into
bytecodealliance:mainfrom
cfallin:fuzzbug-fix
Nov 30, 2021
Merged

cfallin merged 1 commit into
bytecodealliance:mainfrom
cfallin:fuzzbug-fix

Conversation

@cfallin

@cfallin cfallin commented Nov 30, 2021

Copy link
Copy Markdown
Member

Changes in computation of bundle priorities during review of the initial
PR introduced a possible mis-ordering of priorities: inner-loop bundle
use weights could exceed the weights of 1_000_000 and 2_000_000 used for
minimal bundles without and with fixed uses (respectively). These two
kinds of minimal bundle are meant to be the highest-priority bundles,
evicting any other bundle they need to, because they can't be split
further. This PR introduces two special bundle weights for these two
kinds of bundles, and clamps all other bundle weights to just below
them.

Thanks to @Amanieu for reporting the issue! Fixes #19.

Comment thread src/ion/data_structures.rs Resolved
Changes in computation of bundle priorities during review of the initial
PR introduced a possible mis-ordering of priorities: inner-loop bundle
use weights could exceed the weights of 1_000_000 and 2_000_000 used for
minimal bundles without and with fixed uses (respectively). These two
kinds of minimal bundle are meant to be the highest-priority bundles,
evicting any other bundle they need to, because they can't be split
further. This PR introduces two special bundle weights for these two
kinds of bundles, and clamps all other bundle weights to just below
them.

Thanks to @Amanieu for reporting the issue! Fixes bytecodealliance#19.
@cfallin
cfallin merged commit fdd9913 into bytecodealliance:main Nov 30, 2021
@cfallin
cfallin deleted the fuzzbug-fix branch November 30, 2021 23:46
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.

Fuzzer test failure

3 participants