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

Coverity analysis defect 122536: Unsafe assignment operator

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
    • ALL
    • QO 2022-08-08

      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.

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

              Created:
              Updated:
              Resolved: