Skip to content

Instantly share code, notes, and snippets.

@kangaroo
Created February 26, 2015 02:09
Show Gist options
  • Save kangaroo/9489bff0c99742d77268 to your computer and use it in GitHub Desktop.
Save kangaroo/9489bff0c99742d77268 to your computer and use it in GitHub Desktop.
#include <stdio.h>
typedef void (*callback)(int signum);
typedef void (*stackspill)(int a, int b, int c, int d, int e, int f, int g, int h, int i);
void doit(stackspill ptr)
{
ptr(0xaaaaaaaa, 0xbbbbbbbb, 0xcccccccc, 0xdddddddd, 0xeeeeeeee, 0xffffffff, 0x55555555, 0x66666666, 0x77777777);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment