Coverity analysis defect 149003: Overflowed integer argument

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • ALL
    • v8.0, v7.0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: