ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.86k stars 295 forks source link

Coverity Scan - Logically Dead code #380

Closed raghvendra-dixit closed 1 year ago

raghvendra-dixit commented 2 years ago

File : https://github.com/ugorji/go/blob/master/codec/decode.go Error :The indicated dead code may have performed some action; that action will never occur. In github.​com/ugorji/go/codec.​Decoder.​kMap(*github.​com/ugorji/go/codec.​codecFnInfo, reflect.​Value): Code can never be reached because of a logical contradiction (CWE-561) Screenshot:

image
ugorji commented 1 year ago

Reference is not in latest code. Please re-run.