Coverity analysis defect 122536: Unsafe assignment operator

XMLWordPrintableJSON

    • ALL
    • QO 2022-08-08
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: