In order to make Linux machine vulnerable to overflow, I have to use these commands
sudo echo 0 > /proc/sys/kernel/randomize_va_space
and
-fno-stack-protector -z execstack -o bug bug.c
What is the purpose of using these two command before trying to overflow the machine? What security features they disable to cause buffer overflow?