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

Coverity analysis defect 117933: Logically dead code

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Query Execution 2021-04-05

      Logically dead code

      The indicated dead code may have performed some action; that action will never occur. Code can never be reached because of a logical contradiction
      /src/mongo/db/exec/sbe/parser/parser.cpp:1128: DEADCODE 117933 Assigning: "foldPos" = "4UL".
      /src/mongo/db/exec/sbe/parser/parser.cpp:1133: DEADCODE 117933 Assigning: "foldPos" = "3UL".
      /src/mongo/db/exec/sbe/parser/parser.cpp:1145: DEADCODE 117933 At condition "foldPos", the value of "foldPos" must be between 3 and 4.
      /src/mongo/db/exec/sbe/parser/parser.cpp:1138: DEADCODE 117933 The condition "foldPos" must be true.
      /src/mongo/db/exec/sbe/parser/parser.cpp:1138: DEADCODE 117933 Execution cannot reach this statement: "<temporary>.unique_ptr(std:...".

            Assignee:
            andrii.dobroshynski@mongodb.com Andrii Dobroshynski (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: