I am working on a project for school that deals with overflowing buffers (the buffer overflow bomb) I am sure many of you have done it or heard of it. I am not looking for how to do it but just have a general Question concerning returns. Is it possible to return to an address on the stack? I only ask because this seems like the most logical way to solve the phase but it keeps segfaulting and this occurs commonly when trying to access memory outside of your "sandbox" but I would think the stack would be accessible to my program and since it's not really a common question to look up I figured someone on here might know

I should mention the program was designed to allow you to execute code from the stack

Thanks