abhisek/ReflectiveDLLInjection — comment on commit cbb22e686744a5d6434c27a1c0853f61dc570b0b
File:  line 0
By abhisek:

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.