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

Coverity analysis defect 170504: Overflowed constant

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage Execution
    • ALL
    • Storage Execution 2025-03-17

      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/storage/key_string.cpp:2678: INTEGER_OVERFLOW 170504 Expression "remainingBytes - 1U", which is equal to 4294967295, where "remainingBytes" is known to be equal to 0, underflows the type that receives it, an unsigned integer 32 bits wide.

            Assignee:
            thomas.goyne@mongodb.com Thomas Goyne
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: