esp-rs / esp-generate

Template generation tool to create no_std applications targeting Espressif's chips.
Apache License 2.0
10 stars 7 forks source link

Consider enabling stack-smash protection by default #45

Open bjoernQ opened 8 months ago

bjoernQ commented 8 months ago

Since we support it, we could add "-Z", "stack-protector=all", to .cargo/config.toml to get stack-smash protection (and kind of stack overflow protection in our case). Probably with a hint like we use for forcing stack frames.

Otherwise, the feature is quite hard to discover (but will be mentioned in no-std training in a future PR)

MabezDev commented 8 months ago

I think this is a good idea, the only down side is nightly is that is needed :(