Closed Jaap-Jan closed 1 year ago
Thanks for reporting @Jaap-Jan. The bug is triggered on the last value of the range iterator and seems to be affecting all range classes (AsnRange
, Ipv4Range
and Ipv6Range
). I try to provide a fix in the upcoming days.
When a range is created that includes 255.255.255.255 as last IP,
RangeIterator
behaves incorrectly because it callsRangeable#next
without checking that it doesn't overflow.Steps to reproduce:
Expected result:
Actual result: