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

Coverity analysis defect 153333: Overflowed constant

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2025-03-17
    • None
    • 3
    • 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
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/util/time_support.cpp:589: INTEGER_OVERFLOW 153333 "secEnd" = "18446744073709551615UL", its value is now 18446744073709551615.
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/util/time_support.cpp:632: INTEGER_OVERFLOW 153333 Expression "secEnd + 1UL", which is equal to 0, where "secEnd" is known to be equal to 18446744073709551615, overflows the type that receives it, an unsigned integer 64 bits wide.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: