Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2134

Coverity analysis defect 49582: Operands don't affect result

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: None
    • Component/s: 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:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: