RTEMS | undefined behavior in tc-task-restart.c (#5373)

Gedare Bloom (@gedare) gitlab at rtems.org
Thu Oct 9 15:09:16 UTC 2025



Gedare Bloom created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5373

Assignees: Joel Sherrill and Gedare Bloom

## Summary
<!--
Please provide as much information as possible such as error messages or attaching logs
-->

It is undefined behavior to assign the return value of `setjmp` to a local variable.
See in DESCRIPTION at https://pubs.opengroup.org/onlinepubs/9799919799/

https://gitlab.rtems.org/rtems/rtos/rtems/-/blob/main/testsuites/validation/tc-task-restart.c?ref_type=heads#L782



<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5373
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/20251009/a1659a26/attachment.htm>


More information about the bugs mailing list