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
x/net/http2: WriteDataPadded shouldn't accepted padding characters #18809
Note the API permits writing invalid stuff:
... has both AllowIllegalWrites and AllowIllegalReads.
This is useful for testing other implementations.
But I agree that there's something to do here. We should probably validate the pad on write unless AllowIllegalWrites is set.