Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate a stack overflow

How to create the condition of stack overflow in GNU/linux?


2 Answers

a recursive function with no way out should do the trick

pseudo-code, my c is a bit rusty

void stack_overflow()
{
   stack_overflow();
}
like image 170
Jason Avatar answered Nov 08 '25 13:11

Jason


I'd recommend reading the phrack magazine article "Smashing the stack for fun and profit". It also contains sample code.

like image 24
edef Avatar answered Nov 08 '25 14:11

edef