Coverity analysis defect 175749: Overflowed constant

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • 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
      /data/mci/20c67ff3d27bad330e12b569b00565a0/bazel_cache/1bc79c3474a85e2236e0c0bc2a63bda3/execroot/_main/src/mongo/db/exec/classic/merge_sort.cpp:165: INTEGER_OVERFLOW 175749 Expression "18446744073709551615UL * member->getMemUsage()", which is equal to 18446744073709551584, where "member->getMemUsage()" is known to be equal to 32, overflows the type that receives it, an unsigned integer 64 bits wide.

              Assignee:
              Chris Wolff
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: