From 702ec321eb693644d24ff65c876c65833912f0e2 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Sun, 9 May 2010 18:23:38 +0200 Subject: [PATCH] codea: happy addressguessing (thanks gdb) --- codea/lewurm_11.0 | 4 ++-- codea/lewurm_11.call | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) 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); -- 2.25.1