Coverity analysis defect 137540: Unsafe assignment operator

XMLWordPrintableJSON

    • Query Execution
    • Fully Compatible
    • ALL
    • 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/exec/document_value/document_metadata_fields.cpp:49: SELF_ASSIGN 137540 No protection against the object assigning to itself.

            Assignee:
            Alyssa Clark
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: