Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67765

Coverity analysis defect 122493: Division or modulo by zero

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Execution Team 2022-10-03

      Division or modulo by zero

      The program will have undefined behavior, likely a crash. Division or modulo by zero results in undefined behavior.
      /src/mongo/db/catalog/multi_index_block.cpp:782: DIVIDE_BY_ZERO 122493 Assigning: "kYieldIterations" = "this->isBackgroundBuilding() ? mongo::internalIndexBuildBulkLoadYieldIterations.load() : 0". The value of "kYieldIterations" is now 0.

            Assignee:
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: