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

Coverity analysis defect 133948: Unsafe assignment operator

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Service Arch 2022-10-17

      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/transport/session_workflow.cpp:200: SELF_ASSIGN 133948 No protection against the object assigning to itself.

            Assignee:
            matt.diener@mongodb.com Matt Diener (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: