#885: GHC doesn't work with Data Execution Prevention on Windows
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.6.1
Component: Compiler | Version: 6.4.2
Severity: major | Resolution:
Keywords: | Os: Windows
Difficulty: Unknown | Architecture: x86
-----------------------+----------------------------------------------------
Comment (by briansmith):
It seems to me that the Adjustor is the only thing that allocates
executable memory in compiled programs. Is that right? I am not so
concerned about the security implications in the interpreter because the
interpreter can already execute arbitrary code in a variety of ways. But,
I think that the compiler should generate code that does everything it can
to work in cooperation with the operating system's memory protection
mechanisms.
Also, could you please tell me how adjustor thunks get freed? AFAIK they
never get freed. So, any programs that generate a lot of thunks would be
leaking a lot of memory. If I look for calls to freeExec, the only call is
in freeHaskellFunctionPtr, and no calls to freeHaskellFunctionPtr get
generated by the compiler, and nothing else calls it directly either
except hs_free_fun_ptr. hs_free_fun_ptr never seems to get called at all.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/885>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs