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

Coverity analysis defect 122084: Unsafe assignment operator

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2022-06-27

    Description

      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/util/concurrency/ticket.h:56: SELF_ASSIGN 122084 No protection against the object assigning to itself.

      Attachments

        Activity

          People

            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: