Skip Menu |

This queue is for tickets about the Net-Netmask CPAN distribution.

Report information
The Basics
Id: 22662
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Net-Netmask

People
Owner: MUIR [...] cpan.org
Requestors: grjones [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.9014
Fixed in: (no value)



Subject: cidrs2inverse() wrongly returns /32
If the first arg is a /32 and then second is the same /32 or a superset range, cidrs2inverse wrongly returns the /32: my $obj1 = new2 Net::Netmask ('1.0.0.4/32'); my $obj2 = new2 Net::Netmask ('1.0.0.0/8'); die Net::Netmask::errstr if Net::Netmask::errstr; my @leftover_ranges = cidrs2inverse($obj1, $obj2); if (@leftover_ranges) { print "Bug: Array should be empty but got: $leftover_ranges[0]"; } else { print "Good. Array is empty."; }
Fixed in 1.9015 available on CPAN sometime in the next few hours.