|
|
|
|
|
by jpcfl
837 days ago
|
|
> Stack overflows are checked in C on macOS not because of guard pages but because the compiler emits stack checks (with cookies). Compiler-emitted stack checking is optional and not the default, and definitely not what is causing the crash here. > That's implementation-defined, not undefined. How could an implementation reasonably define the behavior for a stack overflow that silently corrupts another variable? |
|
It is the default on macOS for clang.
> How could an implementation reasonably define the behavior for a stack overflow that silently corrupts another variable?
Mandate stack checking.