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

Coverity analysis defect 122312: Uninitialized pointer field

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Internal Code
    • ALL

    Description

      Uninitialized pointer field

      The pointer field will point to an arbitrary memory location, any attempt to write may cause corruption. A pointer field is not initialized in the constructor
      /src/mongo/util/histogram.h:100: UNINIT_CTOR 122312 Class member declaration for "count".
      /src/mongo/util/histogram.h:112: UNINIT_CTOR 122312 Non-static class member "_b.count" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/util/histogram.h:101: UNINIT_CTOR 122312 Class member declaration for "lower".
      /src/mongo/util/histogram.h:112: UNINIT_CTOR 122312 Non-static class member "_b.lower" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/util/histogram.h:102: UNINIT_CTOR 122312 Class member declaration for "upper".
      /src/mongo/util/histogram.h:112: UNINIT_CTOR 122312 Non-static class member "_b.upper" is not initialized in this constructor nor in any functions that it calls.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: