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

Coverity analysis defect 116260: Unsafe assignment operator

    • Fully Compatible
    • ALL
    • Query 2020-10-05

      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/sbe_stage_builder_filter.cpp:116: SELF_ASSIGN 116260 No protection against the object assigning to itself.

            Assignee:
            andrew.paroski@mongodb.com Drew Paroski
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: