dotgnu-libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dotgnu-libjit] WIN32 PATCH: Make allocated memory for compiled code


From: Aleksey Demakov
Subject: Re: [Dotgnu-libjit] WIN32 PATCH: Make allocated memory for compiled code actually executable under Data-Execution-Prevention enabled versions of Windows.
Date: Fri, 23 May 2008 22:48:14 +0700

On Fri, May 23, 2008 at 7:56 PM, GARCIA DE SORIA LUCENA, JUAN JESUS
<address@hidden> wrote:
> We found that jit_malloc_exec() was simply using malloc() in Windows,
> that turned out to be wrong. As specified in
> http://technet.microsoft.com/en-us/library/bb457155.aspx, in order to
> application-generated code to be runnable under DEP, it has to be
> reserved via VirtualAlloc() and freed via VirtualFree(), with flags
> specifying the memory to be executable. That's what the attached patch
> does.
>

Applied with some cosmetic changes. Thanks.

Aleksey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]