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

Coverity analysis defect 115692: Argument cannot be negative

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Catalog
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      Execution Team 2021-01-11, Execution Team 2021-01-25

      Description

      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/db/storage/durable_catalog_impl.cpp:987: NEGATIVE_RETURNS 115692 Assigning: "offset" = "md.findIndexOffset(idxName)".
      /src/mongo/db/storage/durable_catalog_impl.cpp:989: NEGATIVE_RETURNS 115692 "offset" is passed to a parameter that cannot be negative. [Note: The source code implementation of the function has been overridden by a builtin model.]

        Attachments

          Activity

            People

            Assignee:
            dan.larkin-york Dan Larkin-York
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: