You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also panic()s if you pass an empty slice (e.g. net.ParseIP("garbage").IsLinkLocalUnicast())
mikioh
changed the title
stdlib: net.ip.IsLinkLocalUnicast() and .IsLinkLocalMulticast() false positives
net: IP.IsLinkLocalUnicast() and .IsLinkLocalMulticast() false positives
Jul 4, 2015
I found this inspecting the code to understand the test.
http://play.golang.org/p/gXdT4o45uw
It looks like those methods are assuming that any IP they get is a 16 byte slice, but as far as I know a 4 byte slice is a valid IP.
The text was updated successfully, but these errors were encountered: