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

Coverity analysis defect 151612: Overflowed array index read

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

      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@mongodb.com Wei Hu
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: