go icon indicating copy to clipboard operation
go copied to clipboard

SAST: coverity scan : Operands don't affect result

Open raghvendra-dixit opened this issue 2 years ago • 0 comments

As part of coverity scan in file msgpack.go: Details:

  1. The expression's value does not depend on the operands; often, this represents an inadvertent logic error. In github.​com/ugorji/go/codec.​msgpackDecDriver.​DecodeInt64(int64): An operation with non-constant operands that computes a result with constant value
  2. The expression's value does not depend on the operands; often, this represents an inadvertent logic error. In github.​com/ugorji/go/codec.​msgpackDecDriver.​DecodeNaked(): An operation with non-constant operands that computes a result with constant value.
  3. The expression's value does not depend on the operands; often, this represents an inadvertent logic error. In github.​com/ugorji/go/codec.​msgpackDecDriver.​DecodeUint64(uint64): An operation with non-constant operands that computes a result with constant value.
  4. The expression's value does not depend on the operands; often, this represents an inadvertent logic error. In github.​com/ugorji/go/codec.​mpdesc(byte, string): An operation with non-constant operands that computes a result with constant value

Screenshots: 1. image 2. image 3. image 4. image

raghvendra-dixit avatar Aug 02 '22 21:08 raghvendra-dixit