mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 16:39:26 +01:00
15 lines
240 B
Go
15 lines
240 B
Go
|
// +build gofuzz
|
||
|
|
||
|
package irc
|
||
|
|
||
|
func Fuzz(data []byte) int {
|
||
|
b := bytes.NewBuffer(data)
|
||
|
event, err := parseToEvent(b.String())
|
||
|
if err == nil {
|
||
|
irc := IRC("go-eventirc", "go-eventirc")
|
||
|
irc.RunCallbacks(event)
|
||
|
return 1
|
||
|
}
|
||
|
return 0
|
||
|
}
|