python / python/cpython

ipaddress module accepts some strange IPv6 addresses that it shouldn't

Open
#78,634 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

tests type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 34453
Nosy @ncoghlan, @enedil, @prudvinit
Files
  • ipv6test.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2018-08-21.20:22:58.607>
    labels = ['type-bug', 'tests']
    title = "ipaddress module accepts some strange IPv6 addresses that it shouldn't"
    updated_at = <Date 2018-08-25.16:33:09.677>
    user = 'https://bugs.python.org/lkcl'
    

    bugs.python.org fields:

    activity = <Date 2018-08-25.16:33:09.677>
    actor = 'enedil'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Tests']
    creation = <Date 2018-08-21.20:22:58.607>
    creator = 'lkcl'
    dependencies = []
    files = ['47757']
    hgrepos = []
    issue_num = 34453
    keywords = []
    message_count = 9.0
    messages = ['323843', '323895', '323896', '324014', '324019', '324024', '324055', '324057', '324076']
    nosy_count = 5.0
    nosy_names = ['lkcl', 'ncoghlan', 'pmoody', 'enedil', 'prudvinit']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue34453'
    versions = ['Python 3.5', 'Python 3.6']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Research direction

    Start with the attached ipv6test.py cases and the Python ipaddress module to determine which IPv6 forms are currently accepted. Done means the invalid forms identified by the issue are rejected while valid IPv6 addresses continue to work, with regression coverage for the reported cases.

    Written by the indexing model from the issue text.

    Assessment

    Tech stack
    python
    Domain
    networking
    Issue type
    Bug
    Difficulty
    3/5
    Estimated time
    1-2 days
    Activity status
    Stale
    Clarity
    Mostly clear
    Newbie friendliness
    45/100

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.