top | item 40831814

(no title)

nanidin | 1 year ago

In this case someone generated malicious bytecode that the JIT compiler would not generate.

I would argue JIT is dangerous because it requires dynamic memory without the NX bit set, so if you manage to smash the stack (find an exploit) you can execute arbitrary code easily (leverage the exploit). That's a different dangerous than running malicious bytecode.

discuss

order

colejohnson66|1 year ago

JITs can still function with an NX bit; You just have to halt execution to modify it.