2 ms·
This is interesting. I've read documentation about dynamic linking and it describes this replacement process but I never truly understood the fact it was self-m
by matheusmoreira 7y ago
This is interesting. I've read documentation about dynamic linking and it describes this replacement process but I never truly understood the fact it was self-modifying code. Doesn't this imply the program's code is writable? I know that JIT compilers also emit code into writable and executable pages. Aren't there security implications?
- saagarjha 7y agoThere are. That’s why dynamic linking typically doesn’t use self-modifying code and JIT compilers take a number of precautions to prevent attackers from being able to execute arbitrary code.