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

Coverity analysis defect 121452: 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
    • QO 2022-02-21

      Uninitialized scalar field

      The field will contain an arbitrary value left over from earlier computations. A scalar field is not initialized by the constructor
      /opt/mongodbtoolchain/revisions/94dac13bc8c0b50beff286acac77adeb2e81761e/stow/gcc-v3.Thb/include/c++/8.2.0/bits/stl_queue.h:457: UNINIT_CTOR 121452 Class member declaration for "comp".
      /src/mongo/db/query/optimizer/cascades/memo.cpp:98: UNINIT_CTOR 121452 Non-static class member "_queue.comp" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: