Re: US-CERT Vulnerability Note VU#162289

2008-04-20 Thread Nicola Musatti
Rupert Wood wrote: Nicola Musatti wrote: _main PROC ; 12 :char * b = "0123456789"; ; 13 : for ( int l = 0; l < 1 << 30; ++l ) ; 14 : f(b, l); ; 15 : } xor eax, eax ret0 _main ENDP Note that it optimised away your whole program! I

Re: US-CERT Vulnerability Note VU#162289

2008-04-20 Thread Nicola Musatti
David Edelsohn wrote: Nicola, Please send the project files to Robert Seacord. Done. Cheers, Nicola -- Nicola.Musatti gmail com Home: http://nicola.musatti.googlepages.com/home Blog: http://wthwdik.wordpress.com/

Re: US-CERT Vulnerability Note VU#162289

2008-04-19 Thread Nicola Musatti
body is interested. I also tested CodeGear (Borland)'s C++ Builder 2007 compiler and as far as I can tell it doesn't perform this optimization. Maybe we should all switch to their product ;-) Cheers, Nicola Musatti -- Nicola.Musatti gmail com Home: http://nicola.musatti.googlepages.com/home Blog: http://wthwdik.wordpress.com/