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

Fix a timeout in fuzzing #9475

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Commits on Oct 16, 2024

  1. Fix an timeout in fuzzing

    This commit fixes a timeout that was found by OSS-Fuzz recently where a
    module was calling `memory.grow` many times, presumably in a loop, with
    a modest amount each time. This meant that `memory.grow` was taking, in
    total, a quadratic amount of time because Wasmtime was configured with
    dynamic memories and no memory was reserved for growth. That in turn
    meant that the test case eventually timed out due to this quadratic
    behavior.
    
    To fix this in addition to the memory allocation cap that we already
    track a new cap for the number of times memories/tables can be grown was
    also added. Any growth beyond this limit is rejected and helps prevent
    this quadratic behavior.
    alexcrichton committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    6d0954c View commit details
    Browse the repository at this point in the history