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

rewrite: Avoid panic on bad arg count for uri #6571

Merged
merged 2 commits into from
Sep 13, 2024

Commits on Sep 13, 2024

  1. avoid OOB slice access in parseCaddyfileURI when invalid config

    All cases for args[0] require additional arguments present in the slice so doing the bounds check here covers all cases. Cases requiring additional parameters already include additional checks on the len(args)
    mister-turtle authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    087425a View commit details
    Browse the repository at this point in the history
  2. Changed to bounds checks on strip_prefix and strip_suffix, other case…

    …s already seem to have bounds checks in place.
    mister-turtle authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    bb0d17f View commit details
    Browse the repository at this point in the history