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

Coverity analysis defect 120739: Uninitialized scalar field

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • QO 2021-10-04

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: