-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.platform supportruntimeThe Swift RuntimeThe Swift Runtime
Description
Description
The Microsoft documentation for the DbgHelp library warns developers not to pass GetCurrentProcess()
as the handle to SymInitialize()
etc. We should use some other handle, e.g. one returned from GlobalAlloc()
.
I'll modify _swift_withWin32DbgHelpLibrary()
to use a unique handle and pass it to its callback.
Steps to reproduce
N/A
Expected behavior
N/A
Environment
N/A
Metadata
Metadata
Assignees
Labels
WindowsPlatform: WindowsPlatform: WindowsbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.platform supportruntimeThe Swift RuntimeThe Swift Runtime