Add fuzz tests, rename fuzz tests and fix panic found by fuzzing (#72)

* begin adding better fuzz test

* finish adding working fuzzer

* implement mutateipv4

* fuzzer finds a panic in ICMP client on receive empty payload

* rename fuzz tests to reflect fuzz methodology
This commit is contained in:
Pat Whittingslow
2026-04-11 11:09:51 -03:00
committed by GitHub
parent 68461b4416
commit 66a1aec593
226 changed files with 835 additions and 20 deletions
+1 -6
View File
@@ -99,12 +99,7 @@ func (s StackGo) SocketNetip(ctx context.Context, network string, family, sotype
if err != nil {
return nil, err
}
raddr4 := raddr.Addr().As4()
err = conn.Open(laddr.Port(), raddr.Port(), raddr4[:])
if err != nil {
return nil, err
}
err = s.blk.async.RegisterUDP(&conn, raddr4[:], raddr.Port())
err = s.blk.async.DialUDP(&conn, laddr.Port(), raddr)
if err != nil {
return nil, err
}