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

Avoid OOM in refill fuzz test #497

Merged
merged 1 commit into from
Nov 12, 2022
Merged

Avoid OOM in refill fuzz test #497

merged 1 commit into from
Nov 12, 2022

Commits on Nov 12, 2022

  1. Avoid OOM in refill fuzz test

    If two things happen at the same time:
    
    1. the input string has a huge prefix which is taken to be the
       indentation (such as “- - - - -”), and
    2. the wrapping with is set to something small (such as 0),
    
    then we can end up allocating an enormous amount of data in the
    output. The problem is that we add the indentation on every line of
    the output, and we end up with a huge number of lines when the line
    width is small.
    
    This was reported in OSS-Fuzz, please see
    https://oss-fuzz.com/testcase-detail/4890847154143232.
    mgeisler committed Nov 12, 2022
    Configuration menu
    Copy the full SHA
    f2a41f2 View commit details
    Browse the repository at this point in the history