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

Coverity analysis defect 73711: Unsafe assignment operator

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL

    Description

      Assignment operator does not check for self-assignment

      Defect 73711 (STATIC_C)
      Checker SELF_ASSIGN (subcategory none)
      File: /src/mongo/executor/network_test_env.h
      Function mongo::executor::NetworkTestEnv::FutureHandle<void>::operator =(mongo::executor::NetworkTestEnv::FutureHandle<void>&&)
      /src/mongo/executor/network_test_env.h, line: 87
      No protection against the object assigning to itself.

                      _executor = other._executor;

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: