Goal
- Integrate setjmp and longjmp in your project.
This means that you must take the code I made available to you and put in somewhere in your project files so that it will compile, and the functions listed above are available for use.
- Show a working example of usage of setjmp and longjmp (+20 EXP)
Things you need
The source code for the functions is in C and assembly, so you have to be careful where you put them in your project.
See source: setjmp.asm longjmp.c
Also, these functions use a special data structure as argument, so you have to add it as well in your code:
typedef struct
{
unsigned edi, esi, ebp, esp, ebx, edx, ecx, eax;
unsigned eip, eflags;
} jmp_buf[1];