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

Coverity analysis defect 122802: Missing assignment operator

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • QE 2023-02-20, QE 2023-03-06, QE 2023-03-20

      Missing assignment operator

      This class, which frees resources in its destructor, does not have a user-written copy assignment operator, but is copy-assigned. Unless the resource is managed separately from the copy operation, this may cause use-after-free errors. Class that owns resources lacks a user-written assignment operator
      /src/mongo/db/query/optimizer/algebra/polyvalue.h:220: MISSING_COPY_OR_ASSIGN 122802 Class "mongo::optimizer::algebra::PolyValue<mongo::optimizer::BoolExpr<mongo::optimizer::IntervalRequirement>::Atom, mongo::optimizer::BoolExpr<mongo::optimizer::IntervalRequirement>::Conjunction, mongo::optimizer::BoolExpr<mongo::optimizer::IntervalRequirement>::Disjunction>" owns resources that are freed in its destructor but has no user-written assignment operator.

            Assignee:
            amr.elhelw@mongodb.com Amr Elhelw
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: