Panic on stack protector crash instead of exit #2955

Merged
earlephilhower merged 2 commits from spa into master 2025-05-14 17:38:25 +03:00
earlephilhower commented 2025-05-14 01:04:22 +03:00 (Migrated from github.com)

Newlib has a stack protector fail handler which write(2)s a message to STDERR which doesn't work here. Override with a call to panic().

Tell GCC to protect all functions for stack protection instead of ones that it heuristically decides need protection. Slower but safer, and only when stack protection is enabled.

Newlib has a stack protector fail handler which write(2)s a message to STDERR which doesn't work here. Override with a call to panic(). Tell GCC to protect all functions for stack protection instead of ones that it heuristically decides need protection. Slower but safer, and only when stack protection is enabled.
Sign in to join this conversation.