Join GitHub today
net: consider rejecting null byte in LookupHost (and similar) on all platforms consistently #37044
It is my current understanding that no valid host can contain the null byte ('\x00'), so any such string input is not valid.
It seems that the
Perhaps this is an opportunity to make Go operate more consistently on such inputs on all platforms by reporting an error when the