Ticket #4520 (new feature request)
startup code on Windows should use SetDllDirectory("")
| Reported by: | duncan | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 7.6.2 |
| Component: | Runtime System | Version: | 7.0.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
See Raymond's blog about (un)safe dll loading. He points to a support article which recommends that new programs use SetDllDirectory("") to prevent the problem (it's not the default because that'd break old programs).
In the GHC context, this could go in the startup code for standalone executables. It is a process-scope property so changing it is not appropriate for DLL startup.
Change History
Note: See
TracTickets for help on using
tickets.
