Skip Menu |

This queue is for tickets about the NetAddr-IP CPAN distribution.

Report information
The Basics
Id: 82719
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: NetAddr-IP

People
Owner: Nobody in particular
Requestors: GENSYM [...] cpan.org
Cc:
AdminCc:

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



Subject: Method 'hostenumref' dies when bitmask is beyond netlimit
Method 'hostenumref' dies with error message "Modification of non-creatable array value attempted, subscript -1 at / usr/lib/perl5/NetAddr/IP.pm line 396." when called on an object with a bitmask beyond the netlimit. There should be a more meaningful error message for this type of error. Minimal test case for standard netlimit: "NetAddr::IP->new('192.168.123.0/15')->hostenumre"
new version 4.067 released with improved error message On Tue Jan 15 08:52:51 2013, GENSYM wrote: Show quoted text
> Method 'hostenumref' dies with error message > "Modification of non-creatable array value attempted, subscript -1 at / > usr/lib/perl5/NetAddr/IP.pm line 396." > when called on an object with a bitmask beyond the netlimit. > > There should be a more meaningful error message for this type of error. > > Minimal test case for standard netlimit: > "NetAddr::IP->new('192.168.123.0/15')->hostenumre"