Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1891

Coverity analysis defect 105008: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A scalar field is not initialized by the constructor

      Defect 105008 (STATIC_C)
      Checker UNINIT_CTOR (subcategory none)
      File: /src/bsoncxx/types.hpp
      Function mongocxx::v_noabi::options::change_stream::change_stream()
      /src/bsoncxx/types.hpp, line: 561
      The compiler-generated constructor for this class does not initialize "_start_at_operation_time.increment".

              uint32_t increment;
      

      /src/bsoncxx/types.hpp, line: 562
      The compiler-generated constructor for this class does not initialize "_start_at_operation_time.timestamp".

              uint32_t timestamp;
      

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: