3 ms·
What platform are you on that cannot detect a stack overflow?
by gmueckl 7y ago
What platform are you on that cannot detect a stack overflow?
- enriquto 7y agoI do not know how to do it on any platform. My problem is this: void f(int n) { float t[n]; // what do I write here to check if everything is OK ? ... }
- dmitrygr 7y agoModern gcc handles this very well actually. Here: https://gcc.gnu.org/onlinedocs/gccint/Stack-Checking.html https://gcc.gnu.org/onlinedocs/gccint/Stack-Checking.html