codea: happy addressguessing (thanks gdb)
authorBernhard Urban <lewurm@gmail.com>
Sun, 9 May 2010 16:23:38 +0000 (18:23 +0200)
committerBernhard Urban <lewurm@gmail.com>
Sun, 9 May 2010 16:23:38 +0000 (18:23 +0200)
codea/lewurm_11.0
codea/lewurm_11.call

index f92dba82e7dc88c1d43a985319042940bc852f33..6cca5234da27d91be4c5d10f0bf66515e142ea08 100644 (file)
@@ -1,5 +1,5 @@
 struct a b c end;
 struct a b c end;
-method w()
+method wfoo()
        /* passt die addresse jedes mal? */
        /* passt die addresse jedes mal? */
-       return 0x600b10.c;
+       return 0x600ac0.c;
 end;
 end;
index 8a6475f76c1df968b89217fbb0b099e88247a695..08c981d46924916a9c37c97a42b694827fb3c42d 100644 (file)
@@ -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);