Tcl Library Source Code

Ticket Change Details
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Overview

Artifact ID: 063b481d85fcdee3b1234f0277f4c64e6e864536f2860fd394337b90731f6839
Ticket: b1c2d07148abc1d84c97b44f0e3d1ef56cf04504
ip::version and ip::mask accepts invalid netmask and other input after /
User & Date: buzzdeee 2019-06-13 11:54:21
Changes

  1. Change assignee to ""
  2. Change comment to:

    IP version happily accepts and returns invalid netmasks:

    % ::ip::version 10.0.0.1/64
    4
    
    even worse, basically accepts all sorts of input:
    % ip::version 10.0.0.1/dsffds/44
    4
    

    The same is true for ip::mask

    I'm attaching a patch that makes things more strict in ip::version and then at the beginning of ip::mask, check ip::version.

    Then if ip::mask fails, also similariy to ip::version, return -1 on failure.

  3. Change login to "buzzdeee"
  4. Change mimetype to "text/plain"
  5. Change title to:

    ip::version and ip::mask accepts invalid netmask and other input after /