-
Notifications
You must be signed in to change notification settings - Fork 37
misc
tyfkda edited this page Feb 13, 2025
·
7 revisions
- Red Zone : 128 bytes safe stack area in leaf function
csmith-project/csmith: Csmith, a random generator of C programs
- Generate random C program. It can use to detect compiler bugs.
# Mac
export CSMITH_PATH=$HOMEBREW_CELLAR/csmith/2.3.0/include/csmith-2.3.0csmith > tmp.ccc -I $CSMITH_PATH tmp.c
- Infinite loop
int16_t p_33; for (p_33 = 8; (p_33 != (-12)); p_33 = safe_sub_func_uint8_t_u_u(p_33, 1)) ...- Adding
--no-safe-mathsolves the problem, - but causes
floating exceptionon x86-64
//