netaddr icon indicating copy to clipboard operation
netaddr copied to clipboard

Fuzz IP.Is<property>() methods against stdlib net.IP equivalents

Open moreati opened this issue 4 years ago • 3 comments

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.

moreati avatar May 24 '21 20:05 moreati

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"

crashers.zip

moreati avatar May 24 '21 20:05 moreati

Test jig for inspecting discrepancies https://play.golang.org/p/u7C8wFvPSA4

moreati avatar May 25 '21 20:05 moreati

@moreati I just discovered this was still open and unmerged. Sorry about that. Any reason I shouldn't merge now?

josharian avatar Jul 08 '21 23:07 josharian