blob: 554ad8afd2ffd7f231c1118f9b0e6eeda1417605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright 2020 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package kconfig
import (
"github.com/google/syzkaller/sys/targets"
)
func FuzzParseKConfig(data []byte) int {
ParseData(targets.Get("linux", "amd64"), data, "kconfig")
return 0
}
func FuzzParseConfig(data []byte) int {
ParseConfigData(data, "config")
return 0
}
func FuzzParseExpr(data []byte) int {
p := newParser(data, "expr")
if !p.nextLine() {
return 0
}
p.parseExpr()
return 0
}
|