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

Coverity analysis defect 133860: Missing assignment operator

    • Fully Compatible
    • ALL
    • QE 2022-10-17, QE 2022-10-31, QE 2022-11-14, QE 2022-11-28
    • 1

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

              Created:
              Updated:
              Resolved: