bug in visual studio .net 2003 - breakpoints and memcpy
- From: "Gareth Haslip" <gareth.haslip@xxxxxxxxx>
- Date: Sat, 16 Jul 2005 00:37:54 GMT
hi,
this is a funny one, which took me hours to realise.
__declspec( naked )void asmFoo()
{
push EAX;
pop EAX;
}
now do this:
int main
{
RtlCopyMemory(newLocation, asmFoo, sizeofasmFoo);
}
and stick an IDE breakpoint on the line push EAX.
What happens when you run it? Well the opcodes for push EAX gets corrupted
by a CC (= int 3).
This is surely a bug, the ide shouldnt be doing this when you step through
the code?? It should remove the breakpoint for the purposes of memcpy??
Thanks,
Gareth
.
- Follow-Ups:
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- From: David J. Craig
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- From: Alexander Grigoriev
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- From: Pavel A.
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- Prev by Date: csrss error messaging during file copy to cd "Windows-Write Protec
- Next by Date: Re: bug in visual studio .net 2003 - breakpoints and memcpy
- Previous by thread: csrss error messaging during file copy to cd "Windows-Write Protec
- Next by thread: Re: bug in visual studio .net 2003 - breakpoints and memcpy
- Index(es):
Relevant Pages
|