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 #377

Closed raghvendra-dixit closed 1 year ago

raghvendra-dixit commented 2 years ago

File: Error Details: The indicated dead code may have performed some action; that action will never occur.

In github.​com/ugorji/go/codec.​checkOverflow.​SignedInt(uint64, bool): Code can never be reached because of a logical contradiction.

Screenshot:

image

GO version : 1.17, Image : go version: 1.17, Image: us-docker.pkg.dev/google.com/api-project-999119582588/go-boringcrypto/golang:1.17.11b7