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

Coverity analysis defect 134393: Operands don't affect result

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Server Security
    • Fully Compatible
    • ALL
    • Security 2023-02-06, Security 2023-02-20, Security 2023-03-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/third_party/libmongocrypt/dist/src/mongocrypt-marking.c:838: CONSTANT_EXPRESSION_RESULT 134393 "(uint64_t)placeholder->sparsity <= 18446744073709551615UL /* (uint64_t)18446744073709551615UL */" is always true regardless of the values of its operands. This occurs as the logical second operand of "&&".

            Assignee:
            shreyas.kalyan@mongodb.com Shreyas Kalyan
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: