Skip to content

Fuzz failure in release-2.0 #41

Description

@cbandy

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")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions