Skip to content

Commit

Permalink
Add language parser fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKorcz committed Mar 15, 2021
1 parent e3aa4ad commit 5b655ce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions language/fuzz.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 5b655ce

Please sign in to comment.