Skip to content

Instantly share code, notes, and snippets.

@Kobzol
Created September 15, 2016 17:12
Show Gist options
  • Save Kobzol/95beb4892f95a5945da54a069ee47b10 to your computer and use it in GitHub Desktop.
Save Kobzol/95beb4892f95a5945da54a069ee47b10 to your computer and use it in GitHub Desktop.
Recursion
int n = 0;
void foo() {
void* x = nullptr;
printf("%d\n", ++n);
if (n >= 100) {
exit(0);
}
*((char**)(&x + 4)) -= 5;
}
int main()
{
foo();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment