Kotlin

Kotlin : Reference to array element out of bounds

Classification

Overview

In the application, one of the execution paths contains a call of an array element out of bounds, which can lead to incorrect application behavior or crash.

An array is a data structure, which stores a fixed-size collection of elements of the same type which is stored continuously in memory. An array element is accessed by an index, the value of which must be in the range from 0 to sizeArray - 1. When accessing an element by an index that is outside this interval, ArrayIndexOutOfBoundsException is thrown during execution.

MEDIUM

DerScanner Severity Score

Check your Kotlin code for this vulnerability, free

Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.

Try it on your code, free

By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.