From: "Dr. Tobias Quathamer" <toddy@debian.org>
Date: Thu, 9 Jun 2022 21:41:38 +0200
Subject: Disable hook for go-fuzz

Go supports fuzzing in its standard toolchain beginning in Go 1.18.
The code now FTBFS, so disable the old hook for go-fuzz.

Closes: #1008428
---
 base/strings_test.go | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/base/strings_test.go b/base/strings_test.go
index c37629f..6163609 100644
--- a/base/strings_test.go
+++ b/base/strings_test.go
@@ -1,7 +1,6 @@
 package base
 
 import (
-	"fmt"
 	"testing"
 )
 
@@ -33,20 +32,3 @@ func TestEncodeDecode(t *testing.T) {
 		}
 	}
 }
-
-// hook for go-fuzz: https://github.com/dvyukov/go-fuzz
-func Fuzz(data []byte) int {
-	orig := string(data)
-	escaped := escape(orig)
-
-	unescaped, err := unescape(escaped)
-	if err != nil {
-		return 0
-	}
-
-	if unescaped != orig {
-		panic(fmt.Sprintf("unescaped: \"%#v\", != orig: \"%#v\"", unescaped, orig))
-	}
-
-	return 1
-}
