Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-58874

Coverity analysis defect 120344: Operands don't affect result

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • QE 2021-08-09, QE 2021-08-23, QE 2021-09-06

      Operands don't affect result

      The expression's value does not depend on the operands; often, this represents an inadvertent logic error. An operation with non-constant operands that computes a result with constant value
      /src/mongo/bson/bsonelement.h:1090: CONSTANT_EXPRESSION_RESULT 120344 "val > 9223372036854775807LL /* std::numeric_limits<long long>::max() */" is always false regardless of the values of its operands. This occurs as the logical first operand of "||".

            Assignee:
            mindaugas.malinauskas@mongodb.com Mindaugas Malinauskas
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: