Re: [PATCH] relay: Avoid reading stack memory on unprotected side of stack pointer
30 Jul
2008
30 Jul
'08
8:46 a.m.
John Reiser <jreiser(a)BitWagon.com> 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 identical to what call_from_32_regs has saved. So yes, call_from_32_regs will always be running in 32-bit mode and will save a 32-bit context; but the restore part needs to be able to restore any arbitrary context, including one with a 16-bit stack and separate %ds,%es,%ss selectors. -- Alexandre Julliard julliard(a)winehq.org
6343
Age (days ago)
6343
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard