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

Coverity analysis defect 135486: AUTO_CAUSES_COPY

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Server Security
    • Fully Compatible
    • ALL
    • Security 2023-04-03

      AUTO_CAUSES_COPY

      Unnecessary object copies can affect performance. Using the auto keyword without an & causes a copy.
      /src/mongo/crypto/fle_crypto.cpp:5870: AUTO_CAUSES_COPY 135486 Using the "auto" keyword without an "&" causes the copy of an object of type ConstDataRange.

            Assignee:
            shreyas.kalyan@mongodb.com Shreyas Kalyan
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: