In C: sending func pointers, calling the func with it, playing with EIP, jum_buf and longjmp
- by Yonatan
Hello Internet !
I need to make sure i understand some basic stuff first:
1. how do i pass function A as a parameter to function B?
2. how do i call function A from inside B ?
now for the big whammy:
I'm trying to do something along the lines of this:
jmp_buf buf;
buf.__jmpbuf[JB_PC] = functionA;
longjmp(buf,10);
meaning that i want to use longjmp in order to go to a function. how should i do it ?
thank you very much internet people !
Yonatan