aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-linter
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-03-28 18:11:09 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-04-02 09:54:48 +0000
commitf861ecca8b4dbdc9f71c3271d1eb6dbc0f71b5c6 (patch)
tree859cab799bcd1fa814af51fb807ce950ad7b0d2f /tools/syz-linter
parent6baf506947ba27ed9ce775cf9351cb0886166083 (diff)
syz-fuzzer: use of monotonic time for latency measurement
time.Now/Since may reject to use monotonic time if the fuzzer messes with system time badly enough. Enforce use of monotonic time.
Diffstat (limited to 'tools/syz-linter')
-rw-r--r--tools/syz-linter/linter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-linter/linter.go b/tools/syz-linter/linter.go
index 76168c7c9..542d040e6 100644
--- a/tools/syz-linter/linter.go
+++ b/tools/syz-linter/linter.go
@@ -139,7 +139,7 @@ var (
noPeriodComment = regexp.MustCompile(`^// [A-Z][a-z].+[a-z]$`)
lowerCaseComment = regexp.MustCompile(`^// [a-z]+ `)
onelineExceptions = regexp.MustCompile(`// want \"|http:|https:`)
- specialComment = regexp.MustCompile(`//go:generate|//go:build|//go:embed|// nolint:`)
+ specialComment = regexp.MustCompile(`//go:generate|//go:build|//go:embed|//go:linkname|// nolint:`)
)
// checkStringLenCompare checks for string len comparisons with 0.