RTEMS | libmisc/stackchk: Add stack smashing protection (!277)
Mohamed Hassan (@Hamzi)
gitlab at rtems.org
Fri May 23 19:39:11 UTC 2025
Mohamed Hassan commented on a discussion on cpukit/libmisc/stackchk/check.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_122873
> RTEMS_SYSINIT_ISR_STACK,
> RTEMS_SYSINIT_ORDER_MIDDLE
> );
> +
> +/*
> + * This is the default implementation. The user can override it
> + * at the application
> + */
> +RTEMS_WEAK RTEMS_NO_RETURN void __stack_chk_fail(void)
@joel conditionals were removed. I kept revising it and here is the latest update [check.c](https://gitlab.rtems.org/rtems/rtos/rtems/-/blob/66a48d2e2c473491a89db33253485fc3554ac632/cpukit/libmisc/stackchk/check.c#L607-L616).
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_122873
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/20250523/f0000c3f/attachment-0001.htm>
More information about the bugs
mailing list