RTEMS | cpukit/rtems/src: Guard against zero-length in rtems_port_create (!1349)
Avi Weiss (@thnkslprpt)
gitlab at rtems.org
Thu Jul 16 10:51:04 UTC 2026
Avi Weiss created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1349
Project:Branches: thnkslprpt/rtems:fix-5649-protect-against-zero-length-in-port-create to rtems/rtos/rtems:main
Author: Avi Weiss
## Summary
Fixes #5649
Adds a guard against zero-length inputs to `rtems_port_create`.
I used the same form as the `rtems_partition_create` guards.
Without it, it underflows and is created with length - 1 (i.e. `UINT32_MAX`)
Follow on commit corrects a couple typos in the associated test file.
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1349
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-0qsbomatm2gj2e3b9w9u469k3-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260716/e5b93a3e/attachment.htm>
More information about the bugs
mailing list