Skip to content

Instantly share code, notes, and snippets.

@TheBuzzSaw
Created May 24, 2015 04:36
Show Gist options
  • Select an option

  • Save TheBuzzSaw/5d330456a306dcd2ee8b to your computer and use it in GitHub Desktop.

Select an option

Save TheBuzzSaw/5d330456a306dcd2ee8b to your computer and use it in GitHub Desktop.
yay hackery
void stackDump()
{
const unsigned char* n;
n = (const unsigned char*)&n;
cout << "fail function: " << (void*)fail << endl;
for (int i = 0; i < 64; ++i)
{
cout << '[' << i << "] " << (void*)n << " --";
for (int j = 0; j < 8; ++j)
{
cout << hex << ' ' << (int)(*n) << "(" << *n << ")";
++n;
}
cout << dec << '\n';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment