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

Coverity analysis defect 117707: Uninitialized pointer field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Catalog
    • Fully Compatible
    • ALL
    • Execution Team 2021-03-08

      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/db/timeseries/bucket_catalog.h:374: UNINIT_CTOR 117707 Class member declaration for "_key".
      /src/mongo/db/timeseries/bucket_catalog.cpp:528: UNINIT_CTOR 117707 Non-static class member "_key" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/timeseries/bucket_catalog.h:375: UNINIT_CTOR 117707 Class member declaration for "_stats".
      /src/mongo/db/timeseries/bucket_catalog.cpp:528: UNINIT_CTOR 117707 Non-static class member "_stats" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/timeseries/bucket_catalog.h:376: UNINIT_CTOR 117707 Class member declaration for "_time".
      /src/mongo/db/timeseries/bucket_catalog.cpp:528: UNINIT_CTOR 117707 Non-static class member "_time" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: