Coverity analysis defect 151612: Overflowed array index read

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.0.0-rc0
    • Component/s: Internal Code
    • Storage Execution
    • ALL
    • v8.0
    • Execution Team 2024-04-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Overflowed array index read

      Incorrect values will be read from an arbitrary memory location, causing incorrect computations. Read from array at integer overflowed index
      /src/mongo/db/storage/key_string.cpp:2924: INTEGER_OVERFLOW 151612 The decrement operator on the unsigned variable "sizeByteId" might result in an underflow.
      /src/mongo/db/storage/key_string.cpp:2925: INTEGER_OVERFLOW 151612 "sizeByteId", which might have underflowed, is passed to "sizes[sizeByteId]".

            Assignee:
            Wei Hu
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: