Avi Weiss created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1216

Project:Branches: thnkslprpt/rtems:fix-5555-protect-against-baud-zero to 
rtems/rtos/rtems:main
Author:   Avi Weiss



## Summary

Fixes #5555   

`tms570_sci_set_attributes` has no protection against 0 baud rate  

`rtems_termios_baud_to_number` documentation shows it can return 0  

Can result in divide by zero inside `tms570_sci_set_attributes` in at least one 
or two locations (and then also `tms570_sci_interrupt_last_close`).  

This change safely returns false if we end up somehow with a 0 `baudrate` 
value.  

Separate (2nd) commit addresses some typos + applies RTEMS clang_format 
preferences.

## Generative AI
None

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1216
You're receiving this email because of your account on gitlab.rtems.org.


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

Reply via email to