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

Coverity analysis defect 115692: Argument cannot be negative

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Catalog
    • ALL
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: