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

Coverity analysis defect 137540: Unsafe assignment operator

    • Query Execution
    • Fully Compatible
    • ALL

      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@mongodb.com Alyssa Clark
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: