fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define BUF 2
  4.  
  5. void *overflow(int payload) {
  6. if (--payload) {
  7. int *stack = malloc(payload * sizeof(int));
  8. overflow(payload);
  9. }
  10. }
  11.  
  12. int main(void) {
  13. overflow(BUF);
  14. }
  15.  
  16. //https://pt.stackoverflow.com/q/236729/101
Success #stdin #stdout 0s 4472KB
stdin
Standard input is empty
stdout
Standard output is empty