2 ms·
In the last 15 or so years that awareness has increased of that issue, the defaults for stack and heap allocations are to mark pages as non-executable. It is t
by asveikau 10y ago
In the last 15 or so years that awareness has increased of that issue, the defaults for stack and heap allocations are to mark pages as non-executable. It is therefore harder than it used to be to execute data - you need to jump through some hoops.
Not to mention if you could not execute data, your programs would not load.
- dboreham 10y agoI was actually thinking of languages that allow (encourage, even) execution of data. For example : Ruby, Java. Interesting exercise : take a large Java server application and figure out if somewhere, somehow, it can be made to execute a string sent by a client.
- makomk 10y agoThe moment you have any kind of interpreter or JIT compiler, you're effectively bypassing non-executable protection on memory by providing a way of executing code that looks just like accessing data from the CPU's perspective.