Skip to content

Commit

Permalink
ENT-6766: Fix ArrayOutOfBoundsException for Stack.popMethod. (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3 authored Apr 26, 2022
1 parent e5e23c4 commit 0f53c52
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ record = setNumSlots(record, numSlots);

int nextMethodIdx = sp + numSlots;
int nextMethodSP = nextMethodIdx + FRAME_RECORD_SIZE;
if (nextMethodSP > dataObject.length)
if (nextMethodSP >= dataObject.length) {
growStack(nextMethodSP);
}

// clear next method's frame record
dataLong[nextMethodIdx] = 0L;
Expand Down

0 comments on commit 0f53c52

Please sign in to comment.