Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-10326

Coverity analysis defect 134303: Copy without assign

    • 1
    • 2023-05-02 StorEng Bug Bash

      Copy without assign

      This class has a user-defined copy constructor but no user-defined assignment operator. If the copy constructor is necessary to manage owned resources then a corresponding assignment operator is usually required. If an object of this type is assigned memory leaks and/or use-after-free errors may occur. Note that a compiler-generated assignment operator will perform only a bit-wise copy for any fields that do not have their own assignment operators defined. Class has user-written copy constructor but no user-written assignment operator
      /test/cppsuite/src/util/barrier.h:43: COPY_WITHOUT_ASSIGN 134303 Class "test_harness::barrier" has a user-written copy constructor "test_harness::barrier::barrier(test_harness::barrier const &) =delete" but no corresponding user-written assignment operator.
      /test/cppsuite/src/util/barrier.h:46: COPY_WITHOUT_ASSIGN 134303 User-written copy constructor.

            Assignee:
            marc.butler@mongodb.com Marc Butler
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: