You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The array-reading functions readFully and readAvailable are defined with default values for the offset and length parameter.
If you only specify an explicit value for offset, length will default to array.size. If offset is not zero, this leads to an array bounds error, since it tries to write to the range of [offset, offset+length).
A more sensible default might be array.size - offset.
The text was updated successfully, but these errors were encountered:
We're rebooting the kotlinx-io development (see #131), all issues related to the previous versions will be closed. Consider reopening it if the issue remains (or the feature is still missing) in a new version.
The array-reading functions readFully and readAvailable are defined with default values for the offset and length parameter.
If you only specify an explicit value for offset, length will default to array.size. If offset is not zero, this leads to an array bounds error, since it tries to write to the range of [offset, offset+length).
A more sensible default might be
array.size - offset
.The text was updated successfully, but these errors were encountered: