Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.9.0
-
None
Description
The variable named 'i' in 'limitWithNoSV' may overflow when fetch - offset > Character.MAX_VALUE - offset. eg. offset=0, fetch=65536.
Code in limitWithNoSV:
int svIndex = 0;
for(char i = (char) offset; i < fetch; i++) {
outgoingSv.setIndex(svIndex, i);
svIndex++;
}