Coverity analysis defect 202305: Unintentional integer overflow

XMLWordPrintableJSON

    • Storage Engines - Foundations
    • None
    • 1

      Unintentional integer overflow

      The expression's value may not be what the programmer intended, because the expression is evaluated using a narrow (i.e. few bits) integer type. An integer overflow occurs, with the result converted to a wider integer type
      /ext/test/key_provider/key_provider.c:202: OVERFLOW_BEFORE_WIDEN 202305 Potentially overflowing expression "kp->key_expires * 1000000" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t const" (64 bits, unsigned).

            Assignee:
            Alexander Pullen
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: