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

Coverity analysis defect 117876: Uninitialized scalar field

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0-rc0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Query Optimization 2021-04-05

      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_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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: