title: How to use malloc space to execute code instead of storing data
body: <p>I was looking how <a href="https://www.cs.virginia.edu/~evans/cs216/guides/x86.html" rel="nofollow noreferrer">call</a> and <a href="https://stackoverflow.com/questions/41103862/allocating-memory-using-malloc-in-32-bit-and-64-bit-assembly-language?rq=1">malloc</a> works, and was wondering what if I wanted to malloc space to inject code and run it, how would I go about it? Thanks.</p>