Coverity analysis defect 133860: Missing assignment operator

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • QE 2022-10-17, QE 2022-10-31, QE 2022-11-14, QE 2022-11-28
    • 1
    • None
    • 3
    • 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 will cause use-after-free errors. Class that owns resources lacks a user-written assignment operator
      /src/mongo/db/exec/sbe/vm/vm.h:862: MISSING_COPY_OR_ASSIGN 133860 Class "mongo::sbe::vm::ByteCode" owns resources that are freed in its destructor but has no user-written copy constructor.

              Assignee:
              Martin Neupauer (Inactive)
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: