Coverity analysis defect 73462: Unsafe assignment operator

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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;
      

            Assignee:
            Adam Midvidy (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: