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 excessive backtracking in regex engine by introducing backtrackig limit #311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 23, 2024

  1. Avoid excessive backtracking in regex engine during fuzzing

    The regex engine is prone to excessive backtracking, leading to
    timeouts, especially while fuzzing.
    This commit introduces a backtracking counter and a limit of 1000
    backtracking steps. When this limit is exceeded during fuzzing, the
    regex engine aborts to prevent excessive backtracking. For this, the
    FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION macro is used, as per
    suggested by the documentation of libFuzzer.
    renatahodovan committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    33367bb View commit details
    Browse the repository at this point in the history