indexing arrays
Mischa Baars
mjbaars1977@gmail.com
Mon Nov 18 07:57:00 GMT 2013
On 11/17/2013 11:05 PM, Florian Weimer wrote:
> * Mischa Baars:
>
>> Please have a look at the following example, and let me know what
>> you think.
> The code doesn't contain any comments, so we don't know what you're
> trying to do.
The assembly file does, if you would just look at it.
As you can see, the 'ebx' register is unprotected when the function is
called from a location other than 'main'. Normally I shouldn't be able
to modify the array index from the assembly.
More information about the Gcc-help
mailing list