add IP/TCP/HTTP fuzzing and fixes to panics found

This commit is contained in:
Patricio Whittingslow
2026-02-12 16:25:48 -03:00
parent 1694e71e0c
commit fae4552ddb
6 changed files with 141 additions and 2 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ func TestStackAsyncTCP_singlepacket(t *testing.T) {
tst.TestTCPClose(client, sv, clconn, svconn)
}
func newTCPStacks(t *testing.T, randSeed int64, mtu int) (s1, s2 *StackAsync, c1, c2 *tcp.Conn) {
func newTCPStacks(t testing.TB, randSeed int64, mtu int) (s1, s2 *StackAsync, c1, c2 *tcp.Conn) {
s1, s2 = new(StackAsync), new(StackAsync)
c1, c2 = new(tcp.Conn), new(tcp.Conn)
byte1 := byte(randSeed)/4 - 1