Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-13552

Coverity analysis defect 162125: Overflowed constant

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Block Manager
    • Storage Engines
    • StorEng - Defined Pipeline

      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/block_cache/block_mgr.c:771: INTEGER_OVERFLOW 162125 "i" = "0U", its value is now 0.
      /src/block_cache/block_mgr.c:788: INTEGER_OVERFLOW 162125 "i" = "i", its value is now 4294967295.
      /src/block_cache/block_mgr.c:771: INTEGER_OVERFLOW 162125 "i" = "i", its value is now 0.
      /src/block_cache/block_mgr.c:771: INTEGER_OVERFLOW 162125 Expression "++i", which is equal to 0, where "i" is known to be equal to 4294967295, overflows the type that receives it, an unsigned integer 32 bits wide.

            Assignee:
            Unassigned Unassigned
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: