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

Coverity analysis defect 105008: Uninitialized scalar field

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 3.7.0
    • None
    • None
    • None

    Description

      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;

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: