Skip to content

Commit

Permalink
Update Base64LineBreaker fuzzing tests in b64linebreaker_test.go
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wneessen committed Mar 23, 2024
1 parent dae7d80 commit a491821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion b64linebreaker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a491821

Please sign in to comment.