From: Bernhard Urban Date: Sun, 9 May 2010 16:23:38 +0000 (+0200) Subject: codea: happy addressguessing (thanks gdb) X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=testub10.git;a=commitdiff_plain;h=702ec321eb693644d24ff65c876c65833912f0e2 codea: happy addressguessing (thanks gdb) --- diff --git a/codea/lewurm_11.0 b/codea/lewurm_11.0 index f92dba8..6cca523 100644 --- a/codea/lewurm_11.0 +++ b/codea/lewurm_11.0 @@ -1,5 +1,5 @@ struct a b c end; -method w() +method wfoo() /* passt die addresse jedes mal? */ - return 0x600b10.c; + return 0x600ac0.c; end; diff --git a/codea/lewurm_11.call b/codea/lewurm_11.call index 8a6475f..08c981d 100644 --- a/codea/lewurm_11.call +++ b/codea/lewurm_11.call @@ -1,3 +1,6 @@ -long w(long); -static long s[] = {5,1,1337}; -RET(w(0xcafebabe) == 1337); +long wfoo(long); +static long s[3]; +s[0] = 5; +s[1] = 1; +s[2] = 1337; +RET(wfoo(0xcafebabe) == 1337);