LJ Archive

Listing 3. mytest01.c Example Program

#include <stdlib.h>
#include <stdio.h>
int
main (int argc, char **argv)
{
        char    msg[4];
         // Allocate 4 bytes on the stack
        strcpy (msg, "hello Linux users 1234");
         // Overflow the stack frame
        printf ("%s\n", msg);
        return 0;
}
LJ Archive