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

Coverity analysis defect 119305: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Execution Team 2021-06-28

      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/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp:849: UNINIT_CTOR 119305 Class member declaration for "_reversePos".
      /src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_sorted_impl.cpp:810: UNINIT_CTOR 119305 Non-static class member "_reversePos" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            alison.lu@mongodb.com Alison Lu (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: