When a program suffers a stack overflow it receives a SIGSEGV (segmentation fault) signal. If we want to detect it to distinguish it from other causes of SIGSEGV, we can use sigaltstack() and sigaction() to install a SA_ONSTACK handler for SIGSEGV which will run the signal handler on an alternative stack. On this signal handler [...]
-
« Home
Pages
-
RSS Feeds