Coverity analysis defect 134241: Unsafe assignment operator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • QE 2022-12-26, QE 2023-01-09, QE 2023-01-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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/query/stats/value_utils.cpp:63: SELF_ASSIGN 134241 No protection against the object assigning to itself.

            Assignee:
            Sebastien Mendez
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: