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

Coverity analysis defect 105143: Uninitialized pointer field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.6
    • Component/s: Querying
    • Labels:

      Description

      A pointer field is not initialized in the constructor

      Defect 105143 (STATIC_C)
      Checker UNINIT_CTOR (subcategory pointer)
      File: /src/mongo/db/exec/text_or.cpp
      Function mongo::TextOrStage::TextOrStage(mongo::OperationContext *, const mongo::fts::FTSSpec &, mongo::WorkingSet *, const mongo::MatchExpression *, const mongo::Collection *)
      /src/mongo/db/exec/text_or.h, line: 160
      Class member declaration for "_index".

              IndexDescriptor* _index;

      /src/mongo/db/exec/text_or.cpp, line: 68
      Non-static class member "_index" is not initialized in this constructor nor in any functions that it calls.

                _idRetrying(WorkingSet::INVALID_ID) {}

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: