forked from dvyukov/go-fuzz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defs.go
36 lines (30 loc) · 891 Bytes
/
defs.go
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
28
29
30
31
32
33
34
35
36
// Copyright 2015 go-fuzz 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 defs provides constants required by go-fuzz-build, go-fuzz, and instrumented code.
package base
// This package has a special interaction with go-fuzz-dep:
// It is copied into a package with it by go-fuzz-build.
// Only things that can be safely duplicated without confusion,
// like constants, should be added to this package.
// And any additions should be tested carefully. :)
const (
CoverSize = 64 << 10
MaxInputSize = 1 << 20
SonarRegionSize = 1 << 20
)
const (
SonarEQL = iota
SonarNEQ
SonarLSS
SonarGTR
SonarLEQ
SonarGEQ
SonarOpMask = 7
SonarLength = 1 << 3
SonarSigned = 1 << 4
SonarString = 1 << 5
SonarConst1 = 1 << 6
SonarConst2 = 1 << 7
SonarHdrLen = 6
SonarMaxLen = 20
)