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

Coverity analysis defect 116684: Improper use of negative value

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • ALL
    • Query 2020-12-14, Query 2020-12-28

      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()".

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

              Created:
              Updated:
              Resolved: