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

Coverity analysis defect 120845: Uninitialized scalar field

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0
    • None
    • Fully Compatible
    • ALL
    • Repl 2021-10-18

    Description

      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/modules/enterprise/src/fcbis/backup_file_cloner.h:182: UNINIT_CTOR 120845 Class member declaration for "_fileOffset".
      /src/mongo/db/modules/enterprise/src/fcbis/backup_file_cloner.cpp:66: UNINIT_CTOR 120845 Non-static class member "_fileOffset" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/db/modules/enterprise/src/fcbis/backup_file_cloner.h:183: UNINIT_CTOR 120845 Class member declaration for "_sawEof".
      /src/mongo/db/modules/enterprise/src/fcbis/backup_file_cloner.cpp:66: UNINIT_CTOR 120845 Non-static class member "_sawEof" is not initialized in this constructor nor in any functions that it calls.

      Attachments

        Activity

          People

            matthew.russotto@mongodb.com Matthew Russotto
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: