Skip to content

Instantly share code, notes, and snippets.

@Cee
Created July 31, 2014 14:07
Show Gist options
  • Save Cee/f9f9679be576e6e64322 to your computer and use it in GitHub Desktop.
Save Cee/f9f9679be576e6e64322 to your computer and use it in GitHub Desktop.
Bang
unsigned long long global_value = 0;
void bang(unsigned long long val)
{
entry_check(2); /* Make sure entered this function properly */
if (global_value == cookie)
{
printf("Bang!: You set global_value to 0x%llx\n", global_value);
validate(2);
} else {
printf("Misfire: global_value = 0x%llx\n", global_value);
}
exit(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment