-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
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.