mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
18 lines
281 B
C
18 lines
281 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <signal.h>
|
|
#include <setjmp.h>
|
|
#include <assert.h>
|
|
#include <string.h>
|
|
|
|
static jmp_buf TTT_jmpbuf;
|
|
|
|
void SEGV_handler(int signum)
|
|
{
|
|
//fprintf(stderr, "segv caught\n");
|
|
__builtin_longjmp(TTT_jmpbuf, 1);
|
|
}
|
|
|
|
int up[10], up2[10];
|
|
|