stephenfewer/ReflectiveDLLInjection — pull request #1 by abhisek (2011-12-12 06:20:02+00:00)
Title: Ensure original memory is not written.

If ReflectiveLoader is being executed from non-writable memory (say RX only) then it crashes on the decrement. Using stack to store the section count for use in the while(..) loop makes the ReflectiveLoader code independent of writable memory.