Coverity analysis defect 171927: Unsafe assignment operator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Upgrade/Downgrade
    • Catalog and Routing
    • ALL
    • CAR Team 2025-04-14
    • 1
    • 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
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main_/src/mongo/db/version_context.cpp:54: SELF_ASSIGN 171927 No protection against the object assigning to itself.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: