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

Coverity analysis defect 122536: Unsafe assignment operator

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Internal Code
    • ALL
    • QO 2022-08-08

    Description

      Unsafe assignment operator

      This user-written assignment operator does not check for self-assignment. If an object of this type is assigned to itself use-after-free errors may occur if the class owns resources. Assignment operator does not check for self-assignment
      /src/mongo/db/query/ce/utils.cpp:77: SELF_ASSIGN 122536 No protection against the object assigning to itself.

      Attachments

        Activity

          People

            alya.berciu@mongodb.com Alya Berciu
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: