Skip to content

5.0.2 — ParseRange fix for large blocks

Latest

Choose a tag to compare

@lduchosal lduchosal released this 03 Dec 20:45
ec6e797

Fixes

  • ParseRange with blocks of 2^32 addresses and more (#473, thanks @bardrop). The next start address was computed with an int shift, which wraps modulo 32, so large blocks produced wrong, overlapping results or never finished. The block size is now a BigInteger.

    range before after
    0.0.0.0 - 255.255.255.255 0.0.0.0/0, 0.0.0.1/32, 0.0.0.2/31, ... (overlapping) 0.0.0.0/0
    2001:db8:: - 2001:db8::ffff:ffff 2001:db8::/96, 2001:db8::1/128, ... 2001:db8::/96
    2001:db8:: - 2001:db8::ffff:ffff:ffff:ffff did not finish (unbounded memory) 2001:db8::/64
  • TryParseRange no longer throws when the start is after the end (192.168.0.2 - 192.168.0.1); it returns false like the other invalid ranges. ParseRange still throws.

Maintenance

  • Test and tooling dependency bumps (MSTest, Microsoft.NET.Test.Sdk, coverlet 10.1.1, versionize 2.8.0).

AssemblyVersion stays 5.0.0.0, so upgrading from any 5.x needs no recompilation.

Full changelog: 5.0.1...5.0.2