Selected code was adding 4 bytes too much to ESP, which led to a memory corruption.
Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- arch/x86/insn-selector.brg | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/insn-selector.brg b/arch/x86/insn-selector.brg index d7f506b..8522667 100644 --- a/arch/x86/insn-selector.brg +++ b/arch/x86/insn-selector.brg @@ -1368,7 +1368,7 @@ reg: EXPR_ANEWARRAY(reg) select_insn(s, tree, rel_insn(INSN_CALL_REL, (unsigned long) vm_object_alloc_array)); - method_args_cleanup(s, tree, 3); + method_args_cleanup(s, tree, 2); select_exception_test(s, tree); } %else -- 1.6.3.3 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel