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

Coverity analysis defect 116684: Improper use of negative value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • ALL
    • Query 2020-12-14, Query 2020-12-28

    Description

      Improper use of negative value

      The negative value may be unexpected by later operations, causing incorrect computations. Negative value can be returned from function is not being checked before being used improperly
      /src/mongo/db/exec/sbe/vm/vm.cpp:2075: NEGATIVE_RETURNS 116684 Assigning: "numCaptures" = "pcre->getNumberCaptures()".

      Attachments

        Activity

          People

            milena.ivanova@mongodb.com Milena Ivanova
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: