In C: sending func pointers, calling the func with it, playing with EIP, jum_buf and longjmp

Posted by Yonatan on Stack Overflow See other posts from Stack Overflow or by Yonatan
Published on 2010-05-18T08:53:50Z Indexed on 2010/05/18 9:01 UTC
Read the original article Hit count: 358

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about c

    Related posts about longjmp