RTEMS | Draft: libmisc/stackchk: Add stack smashing protection (!277)
Mohamed Hassan (@Hamzi)
gitlab at rtems.org
Sat Nov 23 18:17:07 UTC 2024
Mohamed Hassan commented on a discussion on cpukit/libmisc/stackchk/check.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_115680
> 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)
@gedare I spent some time trying to figure this out. But I really didn't know how to enable the `stack protector` without explicitly adding `-fstack-protector-all` in my testcase `stackchk05.yml`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_115680
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/20241123/56f2a3c5/attachment.htm>
More information about the bugs
mailing list