Ticket UUID: | b1c2d07148abc1d84c97b44f0e3d1ef56cf04504 | |||
Title: | ip::version and ip::mask accepts invalid netmask and other input after / | |||
Type: | Bug | Version: | 1.19 | |
Submitter: | buzzdeee | Created on: | 2019-06-13 11:52:33 | |
Subsystem: | ip | Assigned To: | ||
Priority: | 5 Medium | Severity: | Minor | |
Status: | Open | Last Modified: | 2019-06-13 11:54:21 | |
Resolution: | None | Closed By: | nobody | |
Closed on: | ||||
Description: |
IP version happily accepts and returns invalid netmasks: % ::ip::version 10.0.0.1/64 4even worse, basically accepts all sorts of input: % ip::version 10.0.0.1/dsffds/44 4The 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. |
Attachments:
- make_ip_version_and_mask_more_strict.diff [download] added by buzzdeee on 2019-06-13 11:56:15. [details]