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

Coverity analysis defect 122015: Argument cannot be negative

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Security 2022-04-18

      Argument cannot be negative

      The negative argument will be interpreted as a very large unsigned value. Negative value used as argument to a function expecting a positive value (for example, size of buffer or allocation)
      /src/mongo/crypto/fle_crypto.cpp:473: NEGATIVE_RETURNS 122015 Assigning: "rho" = "reader->getDocumentCount()".
      /src/mongo/crypto/fle_crypto.cpp:505: NEGATIVE_RETURNS 122015 "rho" is passed to a parameter that cannot be negative.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: