This video describes many of the hurdles that are put in place to prevent hackers from hacking. It describes ASLR, non-executable stacks and canaries (stack protectors).
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.