Skip to content

Panic on stack protector crash instead of exit #2955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2025
Merged

Panic on stack protector crash instead of exit #2955

merged 2 commits into from
May 14, 2025

Conversation

earlephilhower
Copy link
Owner

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.
@earlephilhower earlephilhower merged commit d5e844b into master May 14, 2025
26 checks passed
@earlephilhower earlephilhower deleted the spa branch May 14, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant