Coverity analysis defect 122802: Missing assignment operator

XMLWordPrintableJSON

    • Query Optimization
    • ALL
    • QE 2023-02-20, QE 2023-03-06, QE 2023-03-20
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

              Created:
              Updated:
              Resolved: