RTEMS | libmisc/stackchk: Add stack smashing protection (!277)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed Nov 13 23:05:35 UTC 2024
Gedare Bloom started a new discussion on cpukit/libmisc/stackchk/check.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_114876
> RTEMS_SYSINIT_ISR_STACK,
> RTEMS_SYSINIT_ORDER_MIDDLE
> );
> +
> +/*
> + * This is the default implementation. The user can override it
> + * at the application
> + */
> +__attribute__((weak,noreturn)) void __stack_chk_fail(void)
This is dead code unless the user provides `-fstack-protector` option. We should probably make a spec file that enables `-fstack-protector` and also defines a `CONFIGURE_` var to enable this code segment?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_114876
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241113/03b248b3/attachment-0001.htm>
More information about the bugs
mailing list