From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,478ca90e04f8ee3c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,478ca90e04f8ee3c X-Google-Attributes: gid1164f8,public From: Christian Knapmeyer Subject: Re: Will Pentium bug mean more Alpha sales? Date: 1997/11/17 Message-ID: #1/1 X-Deja-AN: 290492761 References: <1997Nov10.135734.1215@flying-disk.spamblock.com> <64bs01$15b$2@nuke.csu.net> <64e84k$dja$1@nntpd.lkg.dec.com> <64fr8r$m0b$1@mrnews.mro.dec.com> Organization: Universitaet Kaiserslautern Newsgroups: comp.sys.dec,comp.os.vms sontakke@hobby.nl (Vikas Sontakke) writes: > Here are couple of prgrams 1st one is in Quick basic, just run it from your > MSDos window of your NT/95 machine. The second one is in Visual C++. Compile > it using available compiler. If your compiler does not allow _asm_emit change > it to _asm > #define db(val) _asm _emit val > > void > main() > { > > > > printf("hw\n"); > db( 0f0h ) > db( 00fh ) > db( 0c7h ) > db( 0c8h ) > > } Here it is a little more elegant, without using "_asm" statements. This version appeared in Bugtraq. char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }; main () { void (*f)() = x; f(); } As I already said in a previous posting, I'm not too much concerned about that bug. No compiler will ever generate these 4 bytes in its code section - unless the compiler has some "strange" bug, or you deliberately write down that code, as shown above. Of course, there will be viruses, trojan horses, evil Active X applets that will try to stop user's computers with this Pentium bug. But this attack is rather harmless compared to the other things that even Word macro viruses can do. Greetings, Christian -- ---------------------------------------------------------------------------- Dipl.-Inform. Christian Knapmeyer Email: knapmey@tecmath.de TECMATH GmbH Voice: 06301/606-20 Fax: 06301/606-70 Sauerwiesen 2 Face : Room 249 67661 Kaiserslautern, Germany Disclaimer: as usual ---------- press any key to continue. press any other key to quit.----------