For the buffer overrun example to work compile with: gcc -fno-stack-protector -D_FORTIFY_SOURCE=0 or with very old gcc. A Mac OS executable is provided, it was tough to get working.