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

src: avoid returning invalid value from hex2bin #42307

Commits on Mar 12, 2022

  1. src: avoid returning invalid value from hex2bin

    If the input is not a valid hexadecimal digit, hex2bin should not return
    an invalid value, which is not handled correctly by the caller, which is
    the PercentDecode function. However, PercentDecode only ever calls the
    hex2bin function with valid hexadecimal digits, so mark the code path
    that previously returned an invalid value for non-digits as UNREACHABLE.
    tniessen committed Mar 12, 2022
    Copy the full SHA
    0899795 View commit details
    Browse the repository at this point in the history