Re: [PATCH] relay: Avoid reading stack memory on unprotected side of stack pointer

2008-07-30 Thread Alexandre Julliard
John Reiser <[EMAIL PROTECTED]> writes: > Thus it seems to me that both the offset and the segment are OK > in the patched code, including when the stack is in a 16-bit segment. > If this analysis has errors, then I wish to learn. You cannot assume that the context you have to restore is identica

Re: [PATCH] relay: Avoid reading stack memory on unprotected side of stack pointer

2008-07-29 Thread Alexandre Julliard
John Reiser <[EMAIL PROTECTED]> writes: > +output( "\tmovl %d(%%ecx),%%edx; movl %%edx,%%es:0*4(%%eax)\n", > CONTEXTOFFSET(Eax) ); > +output( "\tmovl %d(%%ecx),%%edx; movl %%edx,%%es:1*4(%%eax)\n", > CONTEXTOFFSET(Ecx) ); > +output( "\tmovl %d(%%ecx),%%edx; movl %%edx,%%es:2*4(%%eax)