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

Coverity analysis defect 154426: Overflowed integer argument

    • Query Execution
    • ALL
    • v8.0
    • QE 2024-04-29

      Overflowed integer argument

      The argument will be too small or even negative, likely resulting in unexpected behavior (for example, under-allocation in a memory allocation function). An integer overflow occurs, with the overflowed value used as an argument to a function
      /src/mongo/db/pipeline/document_source_change_stream_unwind_transaction.cpp:460: INTEGER_OVERFLOW 154426 Called function "this->txnOpIndex()", and a possible return value is known to be less than zero.
      /src/mongo/db/pipeline/document_source_change_stream_unwind_transaction.cpp:460: INTEGER_OVERFLOW 154426 The cast of "this->txnOpIndex()" to a signed type could result in a negative number.

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

              Created:
              Updated:
              Resolved: