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

Coverity analysis defect 120845: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Repl 2021-10-18

      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.

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

              Created:
              Updated:
              Resolved: