And for bonus points... Do this:
main()
{
setup_func();
test_func();
}
where setup_func is something like this:
void
setup_func(void)
{
uint32_t garbage[] = {0xdeadbeef, 0xfeedface, 0xbaddcafe,
..../* at least 128 bytes of garbage */};
int i;
for (i=0 ; i < (sizeof (garbage) / sizeof (uint32_t)); i++)
printf("Garbage %d, 0x%ux\n", garbage[i]);
}
that way, you'll have a clobbered stack.
Dan
_______________________________________________
networking-discuss mailing list
[email protected]
