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

Change log_mgr->force_write_wait from uint32_t to uint64_t

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

      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
      /src/log/log_mgr.c:942: OVERFLOW_BEFORE_WIDEN 162896 Potentially overflowing expression "log_mgr->force_write_wait * 1000U" with type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t" (64 bits, unsigned).

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

              Created:
              Updated: