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

Coverity analysis defect 117876: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Query Optimization 2021-04-05

      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_set_window_fields.h:140: UNINIT_CTOR 117876 Class member declaration for "_maxMemory".
      /src/mongo/db/pipeline/document_source_set_window_fields.h:98: UNINIT_CTOR 117876 Non-static class member "_maxMemory" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: