Fuzz failure: incorrect diff with nested arrays with set semantics
josephburnett opened this issue · 2 comments
josephburnett commented
Fuzzing failure with input:
go test fuzz v1
string("[{},[]]")
string("[{},[{},[]]]")
Incorrect diff with set semantics.
fuzz: elapsed: 52m45s, execs: 44374875 (28974/sec), new interesting: 794 (total: 793)
fuzz: minimizing 63-byte failing input file
fuzz: elapsed: 52m47s, minimizing
--- FAIL: FuzzJd (3167.23s)
--- FAIL: FuzzJd (0.00s)
common_test.go:245: applying patch @ [["set"],{}]
- [{},[]]
+ [{},[]]
to [{},[]] should give [{},[{},[]]]. Got err: Invalid diff. Expected [[]] at [] but found nothing.
Failing input written to testdata/fuzz/FuzzJd/61c145c6c646c53946229fb0125821ff47c91b63e87da5709002b4fee8b96ca4
To re-run:
go test -run=FuzzJd/61c145c6c646c53946229fb0125821ff47c91b63e87da5709002b4fee8b96ca4
FAIL
exit status 1
FAIL github.com/josephburnett/jd/lib 3167.249s
josephburnett commented
2caa226 has the regression test
josephburnett commented
Fixed: 5048bb6