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

Coverity analysis defect 120344: Operands don't affect result

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • ALL
    • QE 2021-08-09, QE 2021-08-23, QE 2021-09-06

    Description

      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 "||".

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: