static void panic(const char *str)
{
VALGRIND_PRINTF_BACKTRACE("Program aborting because of call to %s\n", str);
- my_exit(99);
- *(volatile int *)0 = 'x';
+ my_exit(1);
}
#define PANIC(soname, fnname) \
VALGRIND_PRINTF_BACKTRACE( \
"*** memmove_chk: buffer overflow detected ***: " \
"program terminated\n"); \
- my_exit(127); \
+ my_exit(1); \
/*NOTREACHED*/ \
return NULL; \
}
VALGRIND_PRINTF_BACKTRACE( \
"*** strcpy_chk: buffer overflow detected ***: " \
"program terminated\n"); \
- my_exit(127); \
+ my_exit(1); \
/*NOTREACHED*/ \
return NULL; \
}
VALGRIND_PRINTF_BACKTRACE( \
"*** stpcpy_chk: buffer overflow detected ***: " \
"program terminated\n"); \
- my_exit(127); \
+ my_exit(1); \
/*NOTREACHED*/ \
return NULL; \
}
VALGRIND_PRINTF_BACKTRACE( \
"*** memcpy_chk: buffer overflow detected ***: " \
"program terminated\n"); \
- my_exit(127); \
+ my_exit(1); \
/*NOTREACHED*/ \
return NULL; \
}