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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to