RTEMS | libmisc/stackchk: Add stack smashing protection (!277)
Mohamed Hassan (@Hamzi)
gitlab at rtems.org
Thu Oct 31 12:33: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_114123
> + #define STACK_CHK_GUARD_VALUE 0xDEADBEEF
> +#endif
> +
> +/**
> + * @brief Stack smashing protecting function
> + *
> + * @note This function is called when a stack overflow occurs.
> + * User application can override the default implementation.
> + */
> +void __stack_chk_fail(void);
> +
> +#ifndef DISABLE_STACK_CHK_GUARD_RUNTIME_CONFIG
> +/**
> + * @brief Stack Canary Pattern Initialization Function
> + *
> + * @return uintptr_t
Noted.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_114123
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/20241031/bb8f32d5/attachment-0001.htm>
More information about the bugs
mailing list