forked from mattbaird/jsonpatch
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I encountered these failures when running go test -bench . -fuzz . using go version go1.25.0 linux/amd64:
--- FAIL: FuzzCreatePatch (2.09s)
--- FAIL: FuzzCreatePatch (0.00s)
fuzz_test.go:28: Test: {} -> {}0
fuzz_test.go:51: Applying patch []
fuzz_test.go:58:
Error Trace: fuzz_test.go:58
fuzz_test.go:23
value.go:581
value.go:365
fuzz.go:341
Error: Expected value ('{}0') is not valid json.
JSON parsing error: 'invalid character '0' after top-level value'
Test: FuzzCreatePatch
Failing input written to testdata/fuzz/FuzzCreatePatch/5b941f188aa6a6ec
To re-run:
go test -run=FuzzCreatePatch/5b941f188aa6a6ec
FAIL
--- FAIL: FuzzCreatePatch (1.27s)
--- FAIL: FuzzCreatePatch (0.00s)
fuzz_test.go:28: Test: {"spec":{"0000000000000000":[]}} -> {}0
fuzz_test.go:51: Applying patch [{"op":"remove","path":"/spec"}]
fuzz_test.go:58:
Error Trace: fuzz_test.go:58
fuzz_test.go:23
value.go:581
value.go:365
fuzz.go:341
Error: Expected value ('{}0') is not valid json.
JSON parsing error: 'invalid character '0' after top-level value'
Test: FuzzCreatePatch
Failing input written to testdata/fuzz/FuzzCreatePatch/bd27409d3e9ac31c
To re-run:
go test -run=FuzzCreatePatch/bd27409d3e9ac31c
FAIL
$ cat testdata/fuzz/FuzzCreatePatch/5b941f188aa6a6ec
go test fuzz v1
[]byte("{}")
[]byte("{}0")
$ cat testdata/fuzz/FuzzCreatePatch/bd27409d3e9ac31c
go test fuzz v1
[]byte("{\"spec\":{\"0000000000000000\":[]}}")
[]byte("{}0")Metadata
Metadata
Assignees
Labels
No labels