netaddr
netaddr copied to clipboard
Fuzz IP.Is<property>() methods against stdlib net.IP equivalents
The intent is to find discrepancies between netaddr.IP and net.IP. These don't necessarily indicate a bug (in either), but it's better to find them and explicitly document/exclude them.
Found 4 cases, again I'm not sure if a discrepancy is a bug or a facet I've not understood.
:~/src/netaddr main(+163/-2)+± head -n1 crashers/*.quoted
==> crashers/27d12f56611c1d8c7b9b43548301cedccf204a9a.quoted <==
"::ffff:e000:0"
==> crashers/28e6412b5bf60a7c02fb854dc9db7e6bd1102bfe.quoted <==
"::ffff:e00f:0"
==> crashers/3d78408db5a58a0c2ce3e5d61d07ad18ef72e243.quoted <==
"::ffff:7f00:0"
==> crashers/5abca428b93502d9c5c35fba2dad0207ce42addb.quoted <==
"feb0::0"
Test jig for inspecting discrepancies https://play.golang.org/p/u7C8wFvPSA4
@moreati I just discovered this was still open and unmerged. Sorry about that. Any reason I shouldn't merge now?