Post

Replies

Boosts

Views

Activity

Reply to Can you turn off buffer overflow protections?
What the project is having us do is to understand the risks of buffer overflows. What I'm trying to do is to intentionally put in a password that causes the 8 char capacity of the password buffer and see exactly what gets corrupted. My understanding is that any password of 9 or more characters is going to overflow to "access," the variable defined immediately before it. And, since access is granted for any value of access other than zero, any buffer overflow will incorrectly allow access. But, I also believe that any password of 13 or more characters is going to overflow the frame pointer and result in the program crashing. For the purposes of this project, I'd like to be able to turn off the buffer overflow protections to allow me to prove what would happen under scenarios with various passwords entered.
Jan ’21