RTEMS | libmisc/stackchk: Add stack smashing protection (!277)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Dec 23 17:24:59 UTC 2024
Gedare Bloom commented on a discussion on testsuites/libtests/stackchk05/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_117272
> +void invoke_stack_overflows(void)
> +{
> + char buffer_short[20];
> +
> + strcpy(buffer_short, long_string);
> +
> + printk("Stack Overflow invoked\n");
> +}
> +
> +rtems_task Init( rtems_task_argument argument )
> +{
> + TEST_BEGIN();
> +
> + invoke_stack_overflows();
> +
> + rtems_test_exit();
This function takes an argument. I don't see how this works for you. It did not compile for me.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/277#note_117272
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/20241223/4d31b379/attachment.htm>
More information about the bugs
mailing list