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

Coverity analysis defect 151317: Overflowed constant

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • ALL
    • QE 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
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/exec/sbe/stages/makeobj.cpp:293: INTEGER_OVERFLOW 151317 "numFieldsRemaining" = "numFieldsRemaining", its value is now 0.
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/exec/sbe/stages/makeobj.cpp:293: INTEGER_OVERFLOW 151317 "numFieldsRemaining" = "numFieldsRemaining", its value is now 18446744073709551615.
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/exec/sbe/stages/makeobj.cpp:293: INTEGER_OVERFLOW 151317 Expression "--numFieldsRemaining", which is equal to 18446744073709551615, where "numFieldsRemaining" is known to be equal to 0, underflows the type that receives it, an unsigned integer 64 bits wide.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: