Re: shellcode not executing if optimizations are on.
On Wed, Apr 30, 2003 at 08:46:20AM -0700, wirepair wrote:
<snip>
> #include <stdio.h>
<snip>
> ((void (*)(void))&shellcizode)();
<snip>
> Now this only
Most probably the compiler assumes that the shellcizode has no effect and
removes the call.
You could try defining shellcizode as volatile in order to disable any
optimizations when dealing with it, or there may be some compiler pragma
to disable optimizations in some places.
Regards,
Luciano Rocha
Received on Wed Apr 30 17:59:00 2003
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 14:07:38 EDT
|