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

Coverity analysis defect 133991: Uninitialized scalar field

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Security 2022-10-31

      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/crypto/fle_crypto.h:1356: UNINIT_CTOR 133991 Class member declaration for "payloadId".
      /src/mongo/crypto/fle_crypto.cpp:3211: UNINIT_CTOR 133991 Non-static class member "payloadId" is not initialized in this constructor nor in any functions that it calls.
      /src/mongo/crypto/fle_crypto.h:1358: UNINIT_CTOR 133991 Class member declaration for "maxCounter".
      /src/mongo/crypto/fle_crypto.cpp:3211: UNINIT_CTOR 133991 Non-static class member "maxCounter" is not initialized in this constructor nor in any functions that it calls.

            Assignee:
            shreyas.kalyan@mongodb.com Shreyas Kalyan
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: