goccy / go-json

Fast JSON encoder/decoder compatible with encoding/json for Go
MIT License
3.11k stars 148 forks source link

enconter panic when calling unmarshal() #495

Open PearsonCHN opened 9 months ago

PearsonCHN commented 9 months ago

panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x88 pc=0xa0cc93]
--
goroutine 698 [running]:
github.com/goccy/go-json/internal/decoder.(*structDecoder).Decode(0x0, 0xc0019a8100, 0x1e0?, 0xc000faa000?, 0xc000fca000)   /builds/worker/vendor/github.com/goccy/go-json/internal/decoder/struct.go:760 +0x3f3
github.com/goccy/go-json.unmarshal({0xc000faa000?, 0xc0016ad428?, 0xb287a6?}, {0x1e42420, 0xc000fca000}, {0x0, 0x0, 0x59?})     /builds/worker/vendor/github.com/goccy/go-json/decode.go:47 +0x186
github.com/goccy/go-json.Unmarshal(...)     /builds/worker/vendor/github.com/goccy/go-json/json.go:276

go-json version in go.mod is v0.9.10