RTEMS | libmisc/stackchk: Add stack smashing protection (!277)
Mohamed Hassan (@Hamzi)
gitlab at rtems.org
Thu Nov 14 03:56:38 UTC 2024
Mohamed Hassan commented on a discussion on cpukit/include/rtems/stackchk.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_114902
> + * Define stack check guard pattern
> + */
> +#ifndef RTEMS_STACK_CHECKER_GUARD_VALUE
> + #define RTEMS_STACK_CHECKER_GUARD_VALUE 0xDEADBEEF
> +#endif
> +
> + __attribute__((weak)) uintptr_t __stack_chk_guard = RTEMS_STACK_CHECKER_GUARD_VALUE;
> +
> +/**
> + * @brief Stack smashing protecting function
> + *
> + * @note This function is called when a stack overflow occurs.
> + * User application can override it's default implementation.
> + *
> + * @note This function is invoked by defining the GCC flag
> + * -fstack-protection options.
Understood, it will be modified.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_114902
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/20241114/0f74d006/attachment-0001.htm>
More information about the bugs
mailing list