Patch from Attila Szegedi <szegedia@freemail.hu> based on the suggestion from Grzegorz Lukasik <hauserx@gmail.com> to fix bug 292324 "ArrayIndexOutOfBoundsException while compiling a script".
git-svn-id: svn://10.0.0.236/trunk@175086 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1521,6 +1521,10 @@ public class Interpreter
|
||||
itsData.longJumps.put(offsetSite, jumpDestination);
|
||||
offset = 0;
|
||||
}
|
||||
int deltaCapacity = offsetSite + 2 - itsData.itsICode.length;
|
||||
if (deltaCapacity > 0) {
|
||||
increaseICodeCapasity(deltaCapacity);
|
||||
}
|
||||
itsData.itsICode[offsetSite] = (byte)(offset >> 8);
|
||||
itsData.itsICode[offsetSite + 1] = (byte)offset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user