Coverity analysis defect 162125: Overflowed constant

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Block Manager
    • Storage Engines, Storage Engines - Persistence
    • StorEng - Defined Pipeline
    • 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
      /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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: