diff --git a/language/fuzz.go b/language/fuzz.go new file mode 100644 index 00000000..b485e3c9 --- /dev/null +++ b/language/fuzz.go @@ -0,0 +1,13 @@ +// Copyright 2021 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:build gofuzz +// +build gofuzz + +package language + +func FuzzAcceptLanguage(data []byte) int { + _, _, _ = ParseAcceptLanguage(string(data)) + return 1 +}