Coverity analysis defect 141292: Overflowed constant

XMLWordPrintableJSON

    • Replication
    • ALL
    • Repl 2025-08-04, Repl 2025-08-18, Repl 2025-09-01, Repl 2025-09-15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Overflowed constant

      The overflowed value due to arithmetic on constants is too small or unexpectedly negative, causing incorrect computations. Integer overflow occurs in arithmetic on constant operands
      /src/mongo/db/repl/replication_coordinator_impl.h:651: INTEGER_OVERFLOW 141292 "this->_configWriteConcernTagChanges" = "this->_configWriteConcernTagChanges", its value is now 18446744073709551615.
      /src/mongo/db/repl/replication_coordinator_impl.h:651: INTEGER_OVERFLOW 141292 Expression "this->_configWriteConcernTagChanges-", which is equal to 18446744073709551615, where "this>_configWriteConcernTagChanges" is known to be equal to 0, underflows the type that receives it, an unsigned integer 64 bits wide.

            Assignee:
            Unassigned
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: