Coverity analysis defect 122493: Division or modulo by zero

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: