This commit is contained in:
adman
2026-03-02 00:14:57 +01:00
parent f7d7a72b7c
commit d8cc9cab48
32 changed files with 79606 additions and 20424 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ func (c *Conn) SetVersion(version string) (err error) {
}
func (c *Conn) Send(packet proto_base.EncodeDecodeAble) (err error) {
//fmt.Println("send:", packet)
slog.Debug("send", "actor", c.Actor, "packet", fmt.Sprintf("%#v", packet))
switch packet := packet.(type) {
case *UnCodablePacket:
err = c.SendRaw(packet.Data)
@@ -124,7 +124,7 @@ func (c *Conn) OnTick(_ event.Tick) (err error) {
if err != nil {
return
}
slog.Debug("packet", "actor", c.Actor, "packet", fmt.Sprintf("%#v", packet))
slog.Debug("receive", "actor", c.Actor, "packet", fmt.Sprintf("%#v", packet))
err = c.Loop.Fire(packet)
return
}
+2
View File
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("\x05\x000000")
+2
View File
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("0")
+2
View File
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("00")
+2
View File
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("\x040000")
+2
View File
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("\x0400000")
+2
View File
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("\x86\x00000000")
+2
View File
@@ -0,0 +1,2 @@
go test fuzz v1
[]byte("80\x00\x01\x05\x01\x010\x01\x00")