Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: shellcode not executing if optimizations are on.

From: Luciano Miguel Ferreira Rocha <strange(at)nsk.no-ip.org>
Date: Wed Apr 30 2003 - 14:01:00 EDT

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


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library