Re: DEP and /NXCOMPAT troubles...
- From: Jeroen Mostert <jmostert@xxxxxxxxx>
- Date: Sun, 09 Nov 2008 00:26:52 +0100
Ira Baxter wrote:
[snip]
Right. So the problem is granularity. There are times when I needIf you find yourself generating "a few hundred bytes" often without an opportunity to reuse memory, write your own allocator that takes memory from an executable page heap. Or else trust your application completely and mark every range your regular allocators return as executable when you intend to use it for code, but since this will leave executable pages all over the place, it's hardly an elegant solution (and a security risk).
a few hundred bytes, dynamically allocated, to hold generated code.
Setting aside full pages is a complete waste of space.
--
J.
.
- References:
- Re: DEP and /NXCOMPAT troubles...
- From: Ira Baxter
- Re: DEP and /NXCOMPAT troubles...
- Prev by Date: Re: DEP and /NXCOMPAT troubles...
- Next by Date: Re: DEP and /NXCOMPAT troubles...
- Previous by thread: Re: DEP and /NXCOMPAT troubles...
- Next by thread: Re: DEP and /NXCOMPAT troubles...
- Index(es):
Relevant Pages
|