Added amqp output
This commit is contained in:
16
Godeps/_workspace/src/github.com/streadway/amqp/fuzz.go
generated
vendored
Normal file
16
Godeps/_workspace/src/github.com/streadway/amqp/fuzz.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// +build gofuzz
|
||||
package amqp
|
||||
|
||||
import "bytes"
|
||||
|
||||
func Fuzz(data []byte) int {
|
||||
r := reader{bytes.NewReader(data)}
|
||||
frame, err := r.ReadFrame()
|
||||
if err != nil {
|
||||
if frame != nil {
|
||||
panic("frame is not nil")
|
||||
}
|
||||
return 0
|
||||
}
|
||||
return 1
|
||||
}
|
||||
Reference in New Issue
Block a user