Coverity analysis defect 145549: Improper use of negative value

XMLWordPrintableJSON

    • Query Execution
    • ALL
    • QE 2025-09-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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/values/ts_block.cpp:248: NEGATIVE_RETURNS 145549 Assigning: "noOfMeasurements" = "mongo::sbe::value::TsBucketPathExtractor::extractCellBlocks(mongo::BSONObj const &)::[lambda() (instance 1)](bucketControlObj, bucketObj, this)()".

            Assignee:
            Niels Lohmann
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: