Buffer Overflow not working

前端 未结 4 1034
囚心锁ツ
囚心锁ツ 2020-12-20 21:33

I was trying to do a buffer overflow (I\'m using Linux) on a simple program that requires a password. Here\'s the program code:

#include 
#inc         


        
4条回答
  •  清酒与你
    2020-12-20 21:55

    The reason is stack smashing is actually a protection mechanism used by some compilers to detect buffer overflow attacks. You are trying to put the 29 A's into a shorter character array (16 bytes).

提交回复
热议问题