projects
/
platform
/
core
/
system
/
edge-orchestration.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
source sync 20190409
[platform/core/system/edge-orchestration.git]
/
vendor
/
github.com
/
miekg
/
dns
/
fuzz.go
1
// +build fuzz
2
3
package dns
4
5
func Fuzz(data []byte) int {
6
msg := new(Msg)
7
8
if err := msg.Unpack(data); err != nil {
9
return 0
10
}
11
if _, err := msg.Pack(); err != nil {
12
return 0
13
}
14
15
return 1
16
}
17
18
func FuzzNewRR(data []byte) int {
19
if _, err := NewRR(string(data)); err != nil {
20
return 0
21
}
22
return 1
23
}