Coverity analysis defect 141292: Overflowed constant

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • ALL
    • Repl 2025-08-04
    • None
    • 3
    • TBD
    • 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:
              Xuerui Fa
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: