Coverity analysis defect 49582: Operands don't affect result

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      An operation with non-constant operands that computes a result with constant value

      Defect 49582 (STATIC_C)
      Checker CONSTANT_EXPRESSION_RESULT (subcategory result_independent_of_operands)
      File: /src/mongoc/mongoc-stream-gridfs.c
      Function _mongoc_stream_gridfs_readv
      /src/mongoc/mongoc-stream-gridfs.c, line: 114
      "timeout_msec <= 2147483647" is always true regardless of the values of its operands. This occurs as the logical operand of "!".

             BSON_ASSERT (timeout_msec <= INT_MAX);
      

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: