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

Coverity analysis defect 73597: Unsafe assignment operator

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL

    Description

      Assignment operator does not check for self-assignment

      Defect 73597 (STATIC_C)
      Checker SELF_ASSIGN (subcategory none)
      File: /src/mongo/s/catalog/forwarding_catalog_manager.cpp
      Function mongo::ForwardingCatalogManager::ScopedDistLock::operator =(mongo::ForwardingCatalogManager::ScopedDistLock&&)
      /src/mongo/s/catalog/forwarding_catalog_manager.cpp, line: 423
      No protection against the object assigning to itself.

              _fcm = other._fcm;
      

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: