Hero
October 8th, 2008, 02:40
Hi all
I noticed if your virtual memory has PAGE_READWRITE or PAGE_READONLY permission, it is enough to execute what is in that memory page even thouh you don't have PAGE_EXECUTE permission.
Is this a normal behaviour of Virtual memory?
I personnaly think this answer is yes, So this is main reason of DEP feature of windows.
But I want to prevent a page from execution, BUT be readable(so I cannot use PAGE_NOACCESS). Any idea how I can do this?
I were not able to find some good article for it. If you know please provide me one....
Hmmmm,I think total question can be abstracted into this:
"How I can emulate a DEP inside my application without using windows DEP?"
Regards
I noticed if your virtual memory has PAGE_READWRITE or PAGE_READONLY permission, it is enough to execute what is in that memory page even thouh you don't have PAGE_EXECUTE permission.
Is this a normal behaviour of Virtual memory?
I personnaly think this answer is yes, So this is main reason of DEP feature of windows.
But I want to prevent a page from execution, BUT be readable(so I cannot use PAGE_NOACCESS). Any idea how I can do this?
I were not able to find some good article for it. If you know please provide me one....

Hmmmm,I think total question can be abstracted into this:
"How I can emulate a DEP inside my application without using windows DEP?"

Regards