Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
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