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

Coverity analysis defect 122312: Uninitialized pointer field

    • ALL
    • Service Arch 2022-09-05, Service Arch 2022-09-19

      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.

            Assignee:
            celina.tala@mongodb.com Celina Tala
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: