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

Coverity analysis defect 73462: Unsafe assignment operator

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • Fully Compatible
    • ALL

    Description

      Assignment operator does not check for self-assignment

      Defect 73462 (STATIC_C)
      Checker SELF_ASSIGN (subcategory none)
      File: /src/mongo/util/net/message.h
      Function mongo::Message::operator =(mongo::Message&&)
      /src/mongo/util/net/message.h, line: 420
      No protection against the object assigning to itself.

                  _buf = r._buf;

      Attachments

        Activity

          People

            adam.midvidy Adam Midvidy
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: