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

Coverity analysis defect 120739: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • QO 2021-10-04

      Uninitialized scalar field

      The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
      /src/mongo/db/pipeline/document_source_graph_lookup.h:282: UNINIT_CTOR 120739 Class member declaration for "_outputIndex".
      /src/mongo/db/pipeline/document_source_graph_lookup.cpp:614: UNINIT_CTOR 120739 Non-static class member "_outputIndex" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: