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

Coverity analysis defect 115692: Argument cannot be negative

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Catalog
    • ALL
    • Execution Team 2021-01-11, Execution Team 2021-01-25

      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.]

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

              Created:
              Updated:
              Resolved: