/*
  Compiler avec :
  gcc -fno-stack-protector -O0 buffer.gcc.c
*/

#include <stdio.h>
#include <stdlib.h>

void g()
{
	printf("Brèche dans la sécurité !\n");
	exit(1);
}

void f()
{
	char str[16];
	*(long*)(str+24) = (long)(g);
	return;
}

int main()
{
	f();
	printf("Sécurité optimale !\n");
	return 0;
}

