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

Coverity analysis defect 149003: Overflowed integer argument

    • Query Integration
    • Fully Compatible
    • ALL
    • v8.0

      Overflowed integer argument

      The argument will be too small or even negative, likely resulting in unexpected behavior (for example, under-allocation in a memory allocation function). An integer overflow occurs, with the overflowed value used as an argument to a function
      /src/mongo/db/geo/geoparser.cpp:179: INTEGER_OVERFLOW 149003 The decrement operator on the unsigned variable "i" might result in an underflow.
      /src/mongo/db/geo/geoparser.cpp:176: INTEGER_OVERFLOW 149003 "i", which might have underflowed, is passed to "(*vertices)[i]". [Note: The source code implementation of the function has been overridden by a builtin model.]

            Assignee:
            chris.wolff@mongodb.com Chris Wolff
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: