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

Coverity analysis defect 104978: Uninitialized scalar field

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query 2018-09-10

      Description

      A scalar field is not initialized by the constructor

      Defect 104978 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/mongo/db/pipeline/document_source_merge_cursors.cpp
      Function mongo::DocumentSourceMergeCursors::DocumentSourceMergeCursors(mongo::executor::TaskExecutor *, mongo::AsyncResultsMergerParams, const boost::intrusive_ptr<mongo::ExpressionContext> &, boost::optional<mongo::BSONObj>)
      /src/mongo/db/pipeline/document_source_merge_cursors.h, line: 164
      Class member declaration for "_execContext".

              RouterExecStage::ExecContext _execContext;

      /src/mongo/db/pipeline/document_source_merge_cursors.cpp, line: 53
      Non-static class member "_execContext" is not initialized in this constructor nor in any functions that it calls.

                _armParams(std::move(armParams)) {}

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: