3 ms·
Oddly, that article doesn't link to the most interesting modern use. It's for security exploits. People have built compilers that output a binary that consists
by souprock 7y ago
Oddly, that article doesn't link to the most interesting modern use. It's for security exploits. People have built compilers that output a binary that consists largely of return addresses that point into the middle of normal functions.
https://en.wikipedia.org/wiki/Return-oriented_programming https://en.wikipedia.org/wiki/Return-oriented_programming
- halayli 7y agoyou're mixing 2 different concepts. Yes they end in oriented-programming in the end but one is an exploit technique and one is a programming model.
- 9214 7y agoThis deserves a bit of clarification: ROP is an application of threaded code technique. Conventional Forth (proto-father of stack-based/concatenative languages, alongside with Joy) is based on indirect-threaded code (ITC), so the connection between ROP and stack-based programming is rather indirect (pun intended). For anyone interested, Book by Loeliger [1] and "Moving Forth" series [2] are essential readings on this topic. [1]: https://archive.org/details/R.G.LoeligerThreadedInterpretiveLanguagesTheirDesignAndImplementationByteBooks1981 https://archive.org/details/R.G.LoeligerThreadedInterpretive... [2]: https://www.bradrodriguez.com/papers/ https://www.bradrodriguez.com/papers/