#84 Invalid functionality of findMatchingPop

open
nobody
None
5
2005-10-14
2005-10-14
Anonymous
No

Jode v1.1.1
Class jode/bytecode/Instruction has invalid functionality
due to:
int count = poppush[1]; // it missed poppush[0]

Example:
instruction dup execute one pop & 2 push, count must
be 1 (not 2).

Discussion

  • Logged In: NO

    Second bug:
    if (count == poppush[0]) return instr; // wrong
    Must be:
    if (count <= poppush[0]) return instr;