EECE-4029 Operating Systems Fall 2016
Stack Overwrite

processes, mutex, semaphores, memory management, producer-consumer, files, deadlock, more..

Viewing and Overwriting Program Stack Contents

overwrite.tar     All the code and documentation in a tar file
Makefile     Make all the code below with this
stack-overwrite-64-2.c     s[24],...,s[30] get the address of function g, thereby overwriting the address that control from main would have returned to when main terminated. This works specifically for my laptop. You will probably have to experiment with the place in s[] that the address (which is printed by the program) goes.
check-stack.c     From a function that is called from a function that is called from main, print the contents of the stack, including data that is not directly visible and is declared in main. See the source file for a description, usage, and notes.
stack     Buffer overflow attacks