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

Coverity analysis defect 134250: Unsafe assignment operator

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Sharding 2022-12-12

      Unsafe assignment operator

      This user-written assignment operator does not check for self-assignment. If an object of this type is assigned to itself use-after-free errors may occur if the class owns resources. Assignment operator does not check for self-assignment
      /src/mongo/db/server_options.h:57: SELF_ASSIGN 134250 No protection against the object assigning to itself.

            Assignee:
            kshitij.gupta@mongodb.com Kshitij Gupta
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: