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

Coverity analysis defect 173507: Using a moved object

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL
    • Programmability 2025-04-28
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Using a moved object

      Using a moved object may lead to an unexpected/undefined behavior. An object is used after it's moved.
      /data/mci/77e945650bfbe989c2bc84a8b08c6ba5/bazel_cache/302c7bfaf6105a0319d58aed476cea75/execroot/_main/src/mongo/bson/bsonobjbuilder.h:149: USE_AFTER_MOVE 173507 "other._buf" is moved (indicated by "std::move(other._buf)").
      /data/mci/77e945650bfbe989c2bc84a8b08c6ba5/bazel_cache/302c7bfaf6105a0319d58aed476cea75/execroot/_main/src/mongo/bson/bsonobjbuilder.h:150: USE_AFTER_MOVE 173507 "other._buf" is used after it has been already moved.

            Assignee:
            billy.donahue@mongodb.com Billy Donahue
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: