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

Coverity analysis defect 105143: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.6
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • ALL
    • Query 2018-12-17

      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) {}
      

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: