Skip to content

Instantly share code, notes, and snippets.

@LordAro
Created January 22, 2015 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LordAro/07e877a92f81c3a7bf3f to your computer and use it in GitHub Desktop.
Save LordAro/07e877a92f81c3a7bf3f to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <signal.h>
static void func(int sig)
{
printf("lol\n");
}
int main()
{
printf("test1\n");
signal(SIGSEGV, func);
printf("%s\n", (char *)0);
printf("test2\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment