From a4918210f17357d321d553e9ed966a4fc2ae54e8 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sat, 23 Mar 2024 16:51:18 +0100 Subject: [PATCH] Update Base64LineBreaker fuzzing tests in b64linebreaker_test.go Updated the fuzzing tests in the `Base64LineBreaker_Write` function. The change specifically converts integer bytes from decimal to octal. This ensures proper testing of a wider range of input scenarios, increasing the reliability and robustness of the code. --- b64linebreaker_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b64linebreaker_test.go b/b64linebreaker_test.go index acdf35a..af58e51 100644 --- a/b64linebreaker_test.go +++ b/b64linebreaker_test.go @@ -466,7 +466,7 @@ func (e errorWriter) Close() error { func FuzzBase64LineBreaker_Write(f *testing.F) { f.Add([]byte("abc")) f.Add([]byte("def")) - f.Add([]uint8{00, 01, 02, 30, 255}) + f.Add([]uint8{0o0, 0o1, 0o2, 30, 255}) buf := bytes.Buffer{} bw := bufio.NewWriter(&buf) f.Fuzz(func(t *testing.T, data []byte) {