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

Coverity analysis defect 120117: Unsafe assignment operator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Execution Team 2021-06-14

      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/db/storage/bson_collection_catalog_entry.h:77: SELF_ASSIGN 120117 No protection against the object assigning to itself.

        Attachments

          Activity

            People

            Assignee:
            luke.bhan Luke Bhan (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: