Pentest 1, buffer overflow error
RobertLarsen opened this issue · 0 comments
RobertLarsen commented
On page 65 with the source code from page 64 the program crashes when 'main()' returns, not when 'strcpy()' returns since the stack grows downwards.
You can see it clearly if you actually compile and run the program. Your 'printf()' will be executed and THEN the program crashes. Had the crash been from 'strcpy()' return your 'printf()' would not have been called.