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

topdown/net: require prefix length for IPv6 in net.cidr_merge #4613

Merged
merged 1 commit into from Apr 26, 2022

Commits on Apr 26, 2022

  1. topdown/net: require prefix length for IPv6 in net.cidr_merge

    There are no default prefixes in IPv6, so if an IPv6 is fed into
    net.cidr_merge, we'll return a non-halt error now.
    
    Before, we'd fail in various ways if a prefix-less IPv6 was fed into
    `net.cidr_merge`. With only one, we'd return `[ "<nil>" ]`, with two,
    we'd panic.
    
    Fixes open-policy-agent#4596.
    
    Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
    srenatus committed Apr 26, 2022
    Copy the full SHA
    c541ad0 View commit details
    Browse the repository at this point in the history