Coverity analysis defect 175049: Logically dead code

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • ALL
    • v8.2, v8.0, v7.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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/scripting/mozjs/module_loader.cpp:435: DEADCODE 175049 Condition "fo > 2147483648UL", taking false branch. Now the value of "fo" is at most 2147483648.
      /src/mongo/scripting/mozjs/module_loader.cpp:440: DEADCODE 175049 Assigning: "len" = "static_cast<size_t>(fo)".
      /src/mongo/scripting/mozjs/module_loader.cpp:441: DEADCODE 175049 At condition "len < 0UL", the value of "len" must be at most 2147483648.
      /src/mongo/scripting/mozjs/module_loader.cpp:441: DEADCODE 175049 The condition "len < 0UL" cannot be true.
      /src/mongo/scripting/mozjs/module_loader.cpp:442: DEADCODE 175049 Execution cannot reach this statement: "JS_ReportErrorUTF8(cx, "can...".

            Assignee:
            Lee Maguire
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: