From f5d8c68a39a82c467da22cc511767bc512fbd175 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sat, 7 Oct 2023 16:39:35 +0100 Subject: [PATCH] test: Add the embedded aliases file to the fuzz corpus This patch adds the embedded aliases file to the fuzz corpus, because it is trivial to do so, and is a reasonable seed which will be naturally adjusted over time as the package evolves (as it happened in recent commits). --- internal/aliases/aliases_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/aliases/aliases_test.go b/internal/aliases/aliases_test.go index 8dafc8e..3f96ebf 100644 --- a/internal/aliases/aliases_test.go +++ b/internal/aliases/aliases_test.go @@ -606,6 +606,7 @@ func FuzzReader(f *testing.F) { resolver.AddDomain("domain") resolver.DropChars = "." resolver.SuffixSep = "-+" + f.Add([]byte(richFileContents)) f.Fuzz(func(t *testing.T, data []byte) { resolver.parseReader("domain", bytes.NewReader(data)) })