[Issue 1360] New: GC emits HLT when GetThreadContext fails after CreateRemoteThread.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 20 22:28:00 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1360
Summary: GC emits HLT when GetThreadContext fails after
CreateRemoteThread.
Product: D
Version: 2.002
Platform: PC
OS/Version: Windows
Status: NEW
Severity: critical
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: wqeqweuqy at hotmail.com
If an external process trys to CreateRemoteThread the current process (to
inject a DLL in this case) the gcx stack scanning code fails in
GetThreadContext().
GetLastError() returns ERROR_GEN_FAILURE and the code hard exists via a HLT
instruction.
Seems a few anti virus/spyware utilities use this injection method, so its
likely to be a problem.
--
More information about the Digitalmars-d-bugs
mailing list